================
@@ -8186,10 +8202,15 @@ void SIInstrInfo::legalizeOperandsVALUt16(MachineInstr 
&MI, unsigned OpIdx,
       RI.getSubRegisterClass(CurrRC, Op.getSubReg());
   if (RI.getMatchingSuperRegClass(ExpectedRC, CurrSRC, AMDGPU::lo16)) {
     const DebugLoc &DL = MI.getDebugLoc();
+    MachineBasicBlock::iterator I = MI;
+    if (MI.isPHI()) {
----------------
zGoldthorpe wrote:

This is necessary to define where the emitted `REG_SEQUENCE` instructions go. I 
could make it a separate change earlier in the stack, but I don't think it 
would do anything on its own.

https://github.com/llvm/llvm-project/pull/222155
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to