[llvm-branch-commits] [llvm-branch] r83906 - /llvm/branches/Apple/Leela/lib/CodeGen/MachineLICM.cpp

Bill Wendling isanbard at gmail.com
Mon Oct 12 14:53:13 PDT 2009


Author: void
Date: Mon Oct 12 16:53:12 2009
New Revision: 83906

URL: http://llvm.org/viewvc/llvm-project?rev=83906&view=rev
Log:
Update MachineLICM to ToT.

Modified:
    llvm/branches/Apple/Leela/lib/CodeGen/MachineLICM.cpp

Modified: llvm/branches/Apple/Leela/lib/CodeGen/MachineLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/lib/CodeGen/MachineLICM.cpp?rev=83906&r1=83905&r2=83906&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/lib/CodeGen/MachineLICM.cpp (original)
+++ llvm/branches/Apple/Leela/lib/CodeGen/MachineLICM.cpp Mon Oct 12 16:53:12 2009
@@ -317,12 +317,10 @@
   if (MI.getOpcode() == TargetInstrInfo::IMPLICIT_DEF)
     return false;
 
-  const TargetInstrDesc &TID = MI.getDesc();
-
   // FIXME: For now, only hoist re-materilizable instructions. LICM will
   // increase register pressure. We want to make sure it doesn't increase
   // spilling.
-  if (!TID.isRematerializable() || !TII->isTriviallyReMaterializable(&MI))
+  if (!TII->isTriviallyReMaterializable(&MI, AA))
     return false;
 
   // If result(s) of this instruction is used by PHIs, then don't hoist it.





More information about the llvm-branch-commits mailing list