[llvm] GlobalISel: adapt MachineSSAUpdater for use in GlobalISel path (PR #78431)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 21:21:25 PST 2024


================
@@ -158,9 +153,9 @@ Register MachineSSAUpdater::GetValueInMiddleOfBlock(MachineBasicBlock *BB,
     if (ExistingValueOnly)
       return Register();
     // Insert an implicit_def to represent an undef value.
-    MachineInstr *NewDef = InsertNewDef(TargetOpcode::IMPLICIT_DEF,
-                                        BB, BB->getFirstTerminator(),
-                                        VRC, MRI, TII);
+    MachineInstr *NewDef =
+        InsertNewDef(TargetOpcode::IMPLICIT_DEF, BB, BB->getFirstTerminator(),
----------------
arsenm wrote:

If it's a generic virtual register, should switch to G_IMPLICIT_DEF/G_PHI

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


More information about the llvm-commits mailing list