Do not model all INLINEASM instructions as having unmodelled side effects.
[oota-llvm.git] / lib / CodeGen / PeepholeOptimizer.cpp
index 1ddfe8b7c230c8b20dc39a7d74e250c96807a6fe..54466efd5a7c566166ad9dc3c64cb857e98899ab 100644 (file)
@@ -338,7 +338,7 @@ bool PeepholeOptimizer::runOnMachineFunction(MachineFunction &MF) {
 
       if (MI->isLabel() || MI->isPHI() || MI->isImplicitDef() ||
           MI->isKill() || MI->isInlineAsm() || MI->isDebugValue() ||
-          MI->getDesc().hasUnmodeledSideEffects())
+          MI->hasUnmodeledSideEffects())
         continue;
 
       if (MI->getDesc().isCompare()) {