[LiveRangeEdit] Fix build failure caused by the rL364536

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Djordje Todorovic 2019-06-27 14:31:52 +00:00
parent 39f0e3cf18
commit 7418f3f6fa

View File

@ -231,9 +231,9 @@ bool LiveRangeEdit::foldAsLoad(LiveInterval *LI,
return false;
LLVM_DEBUG(dbgs() << " folded: " << *FoldMI);
LIS.ReplaceMachineInstrInMaps(*UseMI, *FoldMI);
UseMI->eraseFromParent();
if (UseMI->isCall())
UseMI->getMF()->updateCallSiteInfo(UseMI, FoldMI);
UseMI->eraseFromParent();
DefMI->addRegisterDead(LI->reg, nullptr);
Dead.push_back(DefMI);
++NumDCEFoldedLoads;