Changes in directory llvm/include/llvm/CodeGen:
SelectionDAGNodes.h updated: 1.125 -> 1.126 --- Log message: simplify this method --- Diffs of the changes: (+1 -3) SelectionDAGNodes.h | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.125 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.126 --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.125 Tue Mar 28 13:54:11 2006 +++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Sat Apr 1 20:28:52 2006 @@ -1076,9 +1076,7 @@ bool isNullValue() const { return Value == 0; } bool isAllOnesValue() const { - int NumBits = MVT::getSizeInBits(getValueType(0)); - if (NumBits == 64) return Value+1 == 0; - return Value == (1ULL << NumBits)-1; + return Value == MVT::getIntVTBitMask(getValueType(0)); } static bool classof(const ConstantSDNode *) { return true; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits