summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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/CodeGen
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/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 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:
OpenPOWER on IntegriCloud