Re-reapply "[IR] Move optional data in llvm::Function into a hungoff uselist"
[oota-llvm.git] / include / llvm / IR / Operator.h
index 82f516eb88691607385f0452e492b9128100f6e1..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));
@@ -491,6 +492,6 @@ public:
   }
 };
 
-} // namespace llvm
+} // End llvm namespace
 
 #endif