[llvm] [SelectionDAG] Switch to LiveRegUnits (PR #84197)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 20:36:40 PST 2024


================
@@ -1113,7 +1113,7 @@ static void toggleKills(const MachineRegisterInfo &MRI, LivePhysRegs &LiveRegs,
       continue;
 
     // Things that are available after the instruction are killed by it.
-    bool IsKill = LiveRegs.available(MRI, Reg);
+    bool IsKill = LiveRegs.available(Reg);
----------------
arsenm wrote:

Shouldn't set kill on reserved registers, although you might need an additional check. I think it would be best if the verifier didn't allow it 

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


More information about the llvm-commits mailing list