projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43e9c1
)
Revert the previous commit. Go ahead and hoist rematerializable instructions.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 12 May 2008 19:47:18 +0000
(19:47 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 12 May 2008 19:47:18 +0000
(19:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50990
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineLICM.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineLICM.cpp
b/lib/CodeGen/MachineLICM.cpp
index 829583054459cba8e38d3cf2d202383d83f94416..c2adb1e8b730957fd57d7a33ab369b614e3ec0b8 100644
(file)
--- 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.