Add bundle aware API for querying instruction properties and switch the code
[oota-llvm.git] / lib / CodeGen / MachineSink.cpp
index 29cfb49953b9a227573daa61b6c172d5acfc202b..8a342377890401e766367709fa9122e33f4532ea 100644 (file)
@@ -291,7 +291,7 @@ bool MachineSinking::isWorthBreakingCriticalEdge(MachineInstr *MI,
   if (!CEBCandidates.insert(std::make_pair(From, To)))
     return true;
 
-  if (!MI->isCopy() && !MI->getDesc().isAsCheapAsAMove())
+  if (!MI->isCopy() && !MI->isAsCheapAsAMove())
     return true;
 
   // MI is cheap, we probably don't want to break the critical edge for it.