aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-12 19:47:18 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-12 19:47:18 +0000
commitf3f3f03f813a2b8b9d6630ad079a39899e3816f8 (patch)
treeaac4e2c655944897c5daded897bf79c9a7aacdc5 /lib/CodeGen/MachineLICM.cpp
parent9a1ce155ed514899f62701a7750e42eacfa3939f (diff)
downloadexternal_llvm-f3f3f03f813a2b8b9d6630ad079a39899e3816f8.zip
external_llvm-f3f3f03f813a2b8b9d6630ad079a39899e3816f8.tar.gz
external_llvm-f3f3f03f813a2b8b9d6630ad079a39899e3816f8.tar.bz2
Revert the previous commit. Go ahead and hoist rematerializable instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
-rw-r--r--lib/CodeGen/MachineLICM.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index 8295830..c2adb1e 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/lib/CodeGen/MachineLICM.cpp
@@ -297,10 +297,6 @@ bool MachineLICM::IsLoopInvariantInst(MachineInstr &I) {
void MachineLICM::Hoist(MachineInstr &MI) {
if (!IsLoopInvariantInst(MI)) return;
- // Hoisting things that are trivially rematerializable may result in worse
- // code than before.
- if (TII->isTriviallyReMaterializable(&MI)) return;
-
std::vector<MachineBasicBlock*> Preds;
// Non-back-edge predecessors.