[llvm] [PowerPC] need to set CallFrameSize for the pass PPCReduceCRLogicals when insert a new block (PR #151017)
Lei Huang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 12:02:34 PDT 2025
================
@@ -248,6 +248,11 @@ static bool splitMBB(BlockSplitInfo &BSI) {
}
addIncomingValuesToPHIs(NewBRTarget, ThisMBB, NewMBB, MRI);
+ // Set the call frame size on ThisMBB to the new basic blocks.
+ // See https://reviews.llvm.org/D156113.
+ unsigned CallFrameSize = TII->getCallFrameSizeAt(ThisMBB->back());
+ NewMBB->setCallFrameSize(CallFrameSize);
----------------
lei137 wrote:
nit: can we just inline this to remove the tmp variable?
https://github.com/llvm/llvm-project/pull/151017
More information about the llvm-commits
mailing list