[llvm] [PowerPC] Utilize `getReservedRegs` to find asm clobberable registers. (PR #99766)

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 04:59:34 PDT 2024


================
@@ -62,6 +63,7 @@ frameInfo:
 machineFunctionInfo: {}
 body:             |
   bb.0.entry:
+    liveins: $x3, $x2
     %0:g8rc = LBZ8 @y + 1, $x2 :: (dereferenceable load (s8) from @y + 1, basealign 4)
----------------
bzEq wrote:

Same here, `r2` here is also used as toc pointer.

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


More information about the llvm-commits mailing list