summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>2019-06-27 14:31:52 +0000
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>2019-06-27 14:31:52 +0000
commit7a9ca67fd556a1352f7ea98ada7941d05d59ed07 (patch)
treee0dd1442b4c7326a8c609f3613921965a192fdfd
parent83e1a1e79b51f54700b304a230d10df0b5c8d8e6 (diff)
downloadbcm5719-llvm-7a9ca67fd556a1352f7ea98ada7941d05d59ed07.tar.gz
bcm5719-llvm-7a9ca67fd556a1352f7ea98ada7941d05d59ed07.zip
[LiveRangeEdit] Fix build failure caused by the rL364536
llvm-svn: 364549
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp
index 7968ad32e1a..882e562ba95 100644
--- a/llvm/lib/CodeGen/LiveRangeEdit.cpp
+++ b/llvm/lib/CodeGen/LiveRangeEdit.cpp
@@ -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;
OpenPOWER on IntegriCloud