Fix build breakage
[oota-llvm.git] / lib / VMCore / Instruction.cpp
index 345fd1dd94e9fab52a5776d8022389ca1b64e892..3330847c7acd070b7787f99336f1a684be3017cf 100644 (file)
@@ -128,6 +128,8 @@ const char *Instruction::getOpcodeName(unsigned OpCode) {
   // Other instructions...
   case ICmp:           return "icmp";
   case FCmp:           return "fcmp";
+  case VICmp:          return "vicmp";
+  case VFCmp:          return "vfcmp";
   case PHI:            return "phi";
   case Select:         return "select";
   case Call:           return "call";
@@ -225,15 +227,15 @@ bool Instruction::mayReadFromMemory() const {
   switch (getOpcode()) {
   default: return false;
   case Instruction::Free:
-  case Instruction::Store:
   case Instruction::VAArg:
+  case Instruction::Load:
     return true;
   case Instruction::Call:
     return !cast<CallInst>(this)->doesNotAccessMemory();
   case Instruction::Invoke:
     return !cast<InvokeInst>(this)->doesNotAccessMemory();
-  case Instruction::Load:
-    return true;
+  case Instruction::Store:
+    return cast<StoreInst>(this)->isVolatile();
   }
 }