From: Dan Gohman Date: Tue, 26 Jun 2007 15:16:27 +0000 (+0000) Subject: Simplify the expression for TargetLowering::isTypeLegal. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=71d7794856cb559696935e3ad8215cdb1ae9886b;p=oota-llvm.git Simplify the expression for TargetLowering::isTypeLegal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37732 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 88682f43346..24b0540454a 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -130,9 +130,7 @@ public: /// specified value type. This means that it has a register that directly /// holds it without promotions or expansions. bool isTypeLegal(MVT::ValueType VT) const { - return !MVT::isExtendedValueType(VT) ? - RegClassForVT[VT] != 0 : - false; + return !MVT::isExtendedValueType(VT) && RegClassForVT[VT] != 0; } class ValueTypeActionImpl {