diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r-- | contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp b/contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp index ec6e693e8a..580bcde241 100644 --- a/contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/contrib/libs/llvm12/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -117,7 +117,7 @@ bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) { // If the target doesn't want/need this pass, or if there are no locals // to consider, early exit. - if (LocalObjectCount == 0 || !TRI->requiresVirtualBaseRegisters(MF)) + if (LocalObjectCount == 0 || !TRI->requiresVirtualBaseRegisters(MF)) return true; // Make sure we have enough space to store the local offsets. @@ -416,17 +416,17 @@ bool LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) { const TargetRegisterClass *RC = TRI->getPointerRegClass(*MF); BaseReg = Fn.getRegInfo().createVirtualRegister(RC); - LLVM_DEBUG(dbgs() << " Materializing base register" + LLVM_DEBUG(dbgs() << " Materializing base register" << " at frame local offset " - << LocalOffset + InstrOffset); + << LocalOffset + InstrOffset); // Tell the target to insert the instruction to initialize // the base register. // MachineBasicBlock::iterator InsertionPt = Entry->begin(); - BaseReg = TRI->materializeFrameBaseRegister(Entry, FrameIdx, InstrOffset); - - LLVM_DEBUG(dbgs() << " into " << printReg(BaseReg, TRI) << '\n'); + BaseReg = TRI->materializeFrameBaseRegister(Entry, FrameIdx, InstrOffset); + LLVM_DEBUG(dbgs() << " into " << printReg(BaseReg, TRI) << '\n'); + // The base register already includes any offset specified // by the instruction, so account for that so it doesn't get // applied twice. |