[llvm] [AMDGPU] Avoid put implicit_def into bundle that break reg's liveness (PR #142563)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 23:36:37 PDT 2025


================
@@ -151,7 +166,7 @@ void llvm::finalizeBundle(MachineBasicBlock &MBB,
       if (!Reg)
         continue;
 
-      if (LocalDefs.contains(Reg)) {
+      if (containRegOrSubReg(LocalDefs, Reg, TRI)) {
----------------
arsenm wrote:

Yes, so in that case you can just insert the raw register into the set. The query you're doing would then look at all aliasing registers references with MCRegAliasIterator 

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


More information about the llvm-commits mailing list