[PATCH] D24466: [PPC] Set SP after loading data from stack frame, if no red zone is present
Hal Finkel via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 00:21:51 PDT 2016
hfinkel added inline comments.
================
Comment at: lib/Target/PowerPC/PPCFrameLowering.cpp:1017
@@ +1016,3 @@
+ .addReg(FPReg, RegState::Kill) // Save FP.
+ .addReg(PPC::R0) // This will be treated as 0.
+ .addReg(ScratchReg); // This will be the index (R0 is ok here).
----------------
We have a PPC::ZERO pseudo-register for this purpose, please use that instead.
Repository:
rL LLVM
https://reviews.llvm.org/D24466
More information about the llvm-commits
mailing list