diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-05-12 19:47:18 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-05-12 19:47:18 +0000 |
commit | 2930845065af83e30eac7a571fc58d7eef7ed912 (patch) | |
tree | 187b76cfda73424d3a61b4031289ddda5ddfd6db /llvm/lib/CodeGen/MachineLICM.cpp | |
parent | cfcb56091bfed1cade1a2eae0e4280915e858e65 (diff) | |
download | bcm5719-llvm-2930845065af83e30eac7a571fc58d7eef7ed912.tar.gz bcm5719-llvm-2930845065af83e30eac7a571fc58d7eef7ed912.zip |
Revert the previous commit. Go ahead and hoist rematerializable instructions.
llvm-svn: 50990
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index 82958305445..c2adb1e8b73 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/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. |