[llvm] [PowerPC] Spill non-volatile registers required for traceback table (PR #71115)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 21:50:03 PDT 2024
================
@@ -463,7 +463,7 @@ for.preheader:
for.body: ; preds = %entry, %for.body
%i.03 = phi i32 [ %inc, %for.body ], [ 0, %for.preheader ]
- tail call void asm "addi 14, 14, 1", "~{r14}"()
+ tail call void asm "addi 31, 14, 1", "~{r31}"()
----------------
chenzheng1030 wrote:
OK, I see. PEI only inserts save/restore for non-volatile CSRs which have defs.
I agree, we can keep the `r14`
https://github.com/llvm/llvm-project/pull/71115
More information about the llvm-commits
mailing list