Changes in directory llvm/lib/Target:
TargetLowering.cpp updated: 1.25 -> 1.26 --- Log message: Implement MaskedValueIsZero for ANY_EXTEND nodes --- Diffs of the changes: (+5 -0) TargetLowering.cpp | 5 +++++ 1 files changed, 5 insertions(+) Index: llvm/lib/Target/TargetLowering.cpp diff -u llvm/lib/Target/TargetLowering.cpp:1.25 llvm/lib/Target/TargetLowering.cpp:1.26 --- llvm/lib/Target/TargetLowering.cpp:1.25 Tue Jan 31 19:29:22 2006 +++ llvm/lib/Target/TargetLowering.cpp Thu Feb 2 00:43:15 2006 @@ -154,6 +154,11 @@ case ISD::ZERO_EXTEND: SrcBits = MVT::getSizeInBits(Op.getOperand(0).getValueType()); return MaskedValueIsZero(Op.getOperand(0),Mask & (~0ULL >> (64-SrcBits))); + case ISD::ANY_EXTEND: + // If the mask only includes bits in the low part, recurse. + SrcBits = MVT::getSizeInBits(Op.getOperand(0).getValueType()); + if (Mask >> SrcBits) return false; // Use of unknown top bits. + return MaskedValueIsZero(Op.getOperand(0), Mask); case ISD::AssertZext: SrcBits = MVT::getSizeInBits(cast<VTSDNode>(Op.getOperand(1))->getVT()); return (Mask & ((1ULL << SrcBits)-1)) == 0; // Returning only the zext bits. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits