[llvm] r364549 - [LiveRangeEdit] Fix build failure caused by the rL364536
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 07:31:53 PDT 2019
Author: djtodoro
Date: Thu Jun 27 07:31:52 2019
New Revision: 364549
URL: http://llvm.org/viewvc/llvm-project?rev=364549&view=rev
Log:
[LiveRangeEdit] Fix build failure caused by the rL364536
Modified:
llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
Modified: llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp?rev=364549&r1=364548&r2=364549&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp Thu Jun 27 07:31:52 2019
@@ -231,9 +231,9 @@ bool LiveRangeEdit::foldAsLoad(LiveInter
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;
More information about the llvm-commits
mailing list