projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acaf32e
)
Simplify the expression for TargetLowering::isTypeLegal.
author
Dan Gohman
<gohman@apple.com>
Tue, 26 Jun 2007 15:16:27 +0000
(15:16 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 26 Jun 2007 15:16:27 +0000
(15:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37732
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/TargetLowering.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/TargetLowering.h
b/include/llvm/Target/TargetLowering.h
index 88682f43346614b226f7f66092e61f89a3ae3900..24b0540454a612e17542a2c237a723d5ca3dbadc 100644
(file)
--- 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 {