X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FIR%2FOperator.h;h=372b254ab1839012ece5d9c9d8c42b7f388f71cd;hb=ef112d46b98642b59c657f1560f7e1c21b13a0da;hp=82f516eb88691607385f0452e492b9128100f6e1;hpb=cf0db29df20d9c665da7e82bb261bdd7cf7f1b2b;p=oota-llvm.git diff --git a/include/llvm/IR/Operator.h b/include/llvm/IR/Operator.h index 82f516eb886..372b254ab18 100644 --- a/include/llvm/IR/Operator.h +++ b/include/llvm/IR/Operator.h @@ -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(V) && classof(cast(V)); @@ -491,6 +492,6 @@ public: } }; -} // namespace llvm +} // End llvm namespace #endif