[llvm-commits] [llvm] r50990 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp

Bill Wendling isanbard at gmail.com
Mon May 12 12:47:19 PDT 2008


Author: void
Date: Mon May 12 14:47:18 2008
New Revision: 50990

URL: http://llvm.org/viewvc/llvm-project?rev=50990&view=rev
Log:
Revert the previous commit. Go ahead and hoist rematerializable instructions.

Modified:
    llvm/trunk/lib/CodeGen/MachineLICM.cpp

Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineLICM.cpp?rev=50990&r1=50989&r2=50990&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/MachineLICM.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineLICM.cpp Mon May 12 14:47:18 2008
@@ -297,10 +297,6 @@
 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.





More information about the llvm-commits mailing list