summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-30 07:44:58 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-30 07:44:58 +0000
commit778f57b4f1476b7f9c51e18948ad51e6ce19ddef (patch)
treed9715ceb10932660e58ae2d756f048b841b5cb87 /llvm/lib
parentd503644a4a070e84addb5bd6a31f0d62e3877d5f (diff)
downloadbcm5719-llvm-778f57b4f1476b7f9c51e18948ad51e6ce19ddef.tar.gz
bcm5719-llvm-778f57b4f1476b7f9c51e18948ad51e6ce19ddef.zip
[APInt] Replace calls to setBits with more specific calls to setBitsFrom and setLowBits where possible.
llvm-svn: 301768
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 71d8109fb5a..46419a3c3c3 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2516,7 +2516,7 @@ void SelectionDAG::computeKnownBits(SDValue Op, KnownBits &Known,
computeKnownBits(Op.getOperand(1), Known2, DemandedElts, Depth + 1);
KnownZeroLow = std::min(KnownZeroLow,
Known2.Zero.countTrailingOnes());
- Known.Zero.setBits(0, KnownZeroLow);
+ Known.Zero.setLowBits(KnownZeroLow);
break;
}
case ISD::UADDO:
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index d767a7a7d2c..523462b9885 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -26701,11 +26701,11 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
break;
LLVM_FALLTHROUGH;
case X86ISD::SETCC:
- Known.Zero.setBits(1, BitWidth);
+ Known.Zero.setBitsFrom(1);
break;
case X86ISD::MOVMSK: {
unsigned NumLoBits = Op.getOperand(0).getValueType().getVectorNumElements();
- Known.Zero.setBits(NumLoBits, BitWidth);
+ Known.Zero.setBitsFrom(NumLoBits);
break;
}
case X86ISD::VSHLI:
@@ -26746,7 +26746,7 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
DAG.computeKnownBits(N0, Known, DemandedSrcElts, Depth + 1);
Known.One = Known.One.zext(BitWidth);
Known.Zero = Known.Zero.zext(BitWidth);
- Known.Zero.setBits(InBitWidth, BitWidth);
+ Known.Zero.setBitsFrom(InBitWidth);
break;
}
}
OpenPOWER on IntegriCloud