diff options
author | Dan Gohman <gohman@apple.com> | 2007-06-26 15:16:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-06-26 15:16:27 +0000 |
commit | 71d7794856cb559696935e3ad8215cdb1ae9886b (patch) | |
tree | 1d7a62167a155d18e3bd9175362aed9ceb51c447 | |
parent | acaf32e2363ac2e57da52c49af803204dcda48ed (diff) | |
download | external_llvm-71d7794856cb559696935e3ad8215cdb1ae9886b.zip external_llvm-71d7794856cb559696935e3ad8215cdb1ae9886b.tar.gz external_llvm-71d7794856cb559696935e3ad8215cdb1ae9886b.tar.bz2 |
Simplify the expression for TargetLowering::isTypeLegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37732 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 88682f4..24b0540 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 { |