isTriviallyReMaterializable checks the
[oota-llvm.git] / lib / CodeGen / MachineLICM.cpp
index 5e2d39e1abeb2ad6a5052b8ee1cbc9ce2ad8fd65..5612899875bba1821575a5d6c001ccf8ec8ae854 100644 (file)
@@ -322,7 +322,7 @@ bool MachineLICM::IsProfitableToHoist(MachineInstr &MI) {
   // 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))
     return false;
 
   // If result(s) of this instruction is used by PHIs, then don't hoist it.