mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 08:37:45 +00:00
[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:
parent
39f0e3cf18
commit
7418f3f6fa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user