Add support for fast-math flags to the FCmp instruction.
[oota-llvm.git] / include / llvm / IR / Operator.h
index 1b9102ecc7e431fca7b8ddd78b9ee5666613d78c..372b254ab1839012ece5d9c9d8c42b7f388f71cd 100644 (file)
@@ -305,7 +305,8 @@ public:
   float getFPAccuracy() const;
 
   static inline bool classof(const Instruction *I) {
-    return I->getType()->isFPOrFPVectorTy();
+    return I->getType()->isFPOrFPVectorTy() ||
+      I->getOpcode() == Instruction::FCmp;
   }
   static inline bool classof(const Value *V) {
     return isa<Instruction>(V) && classof(cast<Instruction>(V));