diff options
author | Duncan Sands <baldrick@free.fr> | 2008-11-23 15:47:28 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-11-23 15:47:28 +0000 |
commit | 03228089d5235f8c90477f88809139464e9c6ea5 (patch) | |
tree | b01af31eef20a09ae34c43348eee69ca29abcf9d /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | cdfc51ffe3eda17a611fe2aaed1a2e6650d3d203 (diff) |
Rename SetCCResultContents to BooleanContents. In
practice these booleans are mostly produced by SetCC,
however the concept is more general.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7d64b2441d..f55bdec968 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1495,10 +1495,10 @@ void SelectionDAG::ComputeMaskedBits(SDValue Op, const APInt &Mask, case ISD::UADDO: if (Op.getResNo() != 1) return; - // The boolean result conforms to getSetCCResultContents. Fall through. + // The boolean result conforms to getBooleanContents. Fall through. case ISD::SETCC: // If we know the result of a setcc has the top bits zero, use this info. - if (TLI.getSetCCResultContents() == TargetLowering::ZeroOrOneSetCCResult && + if (TLI.getBooleanContents() == TargetLowering::ZeroOrOneBooleanContent && BitWidth > 1) KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - 1); return; @@ -1903,11 +1903,11 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const{ case ISD::UADDO: if (Op.getResNo() != 1) break; - // The boolean result conforms to getSetCCResultContents. Fall through. + // The boolean result conforms to getBooleanContents. Fall through. case ISD::SETCC: // If setcc returns 0/-1, all bits are sign bits. - if (TLI.getSetCCResultContents() == - TargetLowering::ZeroOrNegativeOneSetCCResult) + if (TLI.getBooleanContents() == + TargetLowering::ZeroOrNegativeOneBooleanContent) return VTBits; break; case ISD::ROTL: |