Skip to content

Commit 637789f

Browse files
author
Kai Luo
committed
Make verifier happy
1 parent 0ae2104 commit 637789f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12760,7 +12760,7 @@ PPCTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
1276012760
// ...
1276112761
// TrueVal = ...
1276212762
// cmpTY ccX, r1, r2
12763-
// bCC copy1MBB
12763+
// bCC sinkMBB
1276412764
// fallthrough --> copy0MBB
1276512765
MachineBasicBlock *thisMBB = BB;
1276612766
MachineBasicBlock *copy0MBB = F->CreateMachineBasicBlock(LLVM_BB);
@@ -12769,6 +12769,12 @@ PPCTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
1276912769
F->insert(It, copy0MBB);
1277012770
F->insert(It, sinkMBB);
1277112771

12772+
// Set the call frame size on entry to the new basic blocks.
12773+
// See https://reviews.llvm.org/D156113.
12774+
unsigned CallFrameSize = TII->getCallFrameSizeAt(MI);
12775+
copy0MBB->setCallFrameSize(CallFrameSize);
12776+
sinkMBB->setCallFrameSize(CallFrameSize);
12777+
1277212778
// Transfer the remainder of BB and its successor edges to sinkMBB.
1277312779
sinkMBB->splice(sinkMBB->begin(), BB,
1277412780
std::next(MachineBasicBlock::iterator(MI)), BB->end());

0 commit comments

Comments
 (0)