[llvm] [PowerPC] Spill non-volatile registers required for traceback table (PR #71115)

Maryam Moghadas via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 10:38:40 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}"()
----------------
maryammo wrote:

The second r14 is an input, so I think it is Ok to keep it the same. 

https://github.com/llvm/llvm-project/pull/71115


More information about the llvm-commits mailing list