diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-04-08 15:17:43 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-04-08 15:17:43 +0000 |
commit | 5a7723c7a2d5b7d67125f008d7d41b3e4d145f99 (patch) | |
tree | b3bac86c79dbd21c987102645b550c553715c7f5 /llvm/lib/CodeGen/RegAllocBase.cpp | |
parent | 872dd6c3fe74717d1a2cbc7b62a3cd33f27b699b (diff) | |
download | bcm5719-llvm-5a7723c7a2d5b7d67125f008d7d41b3e4d145f99.tar.gz bcm5719-llvm-5a7723c7a2d5b7d67125f008d7d41b3e4d145f99.zip |
Revert r265547 "Recommit r265309 after fixed an invalid memory reference bug happened"
It caused PR27275: "ARM: Bad machine code: Using an undefined physical register"
Also reverting the following commits that were landed on top:
r265610 "Fix the compare-clang diff error introduced by r265547."
r265639 "Fix the sanitizer bootstrap error in r265547."
r265657 "InlineSpiller.cpp: Escap \@ in r265547. [-Wdocumentation]"
llvm-svn: 265790
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocBase.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.cpp b/llvm/lib/CodeGen/RegAllocBase.cpp index 1130d64689d..16ff48e78a7 100644 --- a/llvm/lib/CodeGen/RegAllocBase.cpp +++ b/llvm/lib/CodeGen/RegAllocBase.cpp @@ -153,12 +153,3 @@ void RegAllocBase::allocatePhysRegs() { } } } - -void RegAllocBase::postOptimization() { - spiller().postOptimization(); - for (auto DeadInst : DeadRemats) { - LIS->RemoveMachineInstrFromMaps(*DeadInst); - DeadInst->eraseFromParent(); - } - DeadRemats.clear(); -} |