[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Dan Gohman
djg at cray.com
Tue Jun 26 08:16:50 PDT 2007
Changes in directory llvm/include/llvm/Target:
TargetLowering.h updated: 1.130 -> 1.131
---
Log message:
Simplify the expression for TargetLowering::isTypeLegal.
---
Diffs of the changes: (+1 -3)
TargetLowering.h | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.130 llvm/include/llvm/Target/TargetLowering.h:1.131
--- llvm/include/llvm/Target/TargetLowering.h:1.130 Mon Jun 25 11:23:39 2007
+++ llvm/include/llvm/Target/TargetLowering.h Tue Jun 26 10:16:27 2007
@@ -130,9 +130,7 @@
/// 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 {
More information about the llvm-commits
mailing list