rampitec added inline comments. ================ Comment at: lib/Target/AMDGPU/SIFoldOperands.cpp:472 MachineInstr *Def = MRI.getVRegDef(Op.getReg()); + if (Def && Def->isMoveImmediate()) { ---------------- getUniqueVRegDef? https://reviews.llvm.org/D34378