[PATCH] D71390: [PowerPC] Modify the hasSideEffects of MTLR and MFLR from 1 to 0
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 23:12:03 PST 2019
lkail added a comment.
Seems currently we haven't modeled `mtlr` correctly. In `PPCFrameLowering`
if (MustSaveLR)
BuildMI(MBB, StackUpdateLoc, dl, MTLRInst).addReg(ScratchReg);
We might lack a `implicit-def` of `$lr` here. As a result, we might get wrong code if set `hasSideEffect = 0` for `mtlr`. What do you think?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71390/new/
https://reviews.llvm.org/D71390
More information about the llvm-commits
mailing list