mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 09:57:08 +08:00
Fix buildbot breakage where a def is missing.
llvm-svn: 107698
This commit is contained in:
@@ -352,6 +352,8 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(const CoalescerPair &CP,
|
||||
AValNo->isUnused() || AValNo->hasPHIKill())
|
||||
return false;
|
||||
MachineInstr *DefMI = li_->getInstructionFromIndex(AValNo->def);
|
||||
if (!DefMI)
|
||||
return false;
|
||||
const TargetInstrDesc &TID = DefMI->getDesc();
|
||||
if (!TID.isCommutable())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user