mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-07 10:07:17 +00:00
Fix buildbot breakage where a def is missing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6db2389d69
commit
813eedd207
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user