summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2010-12-01 08:53:58 +0000
committerJay Foad <jay.foad@gmail.com>2010-12-01 08:53:58 +0000
commit25a5e4ca1f8b85b1ffb831d64cbc60599a30b9d2 (patch)
tree4a2647226b89ed443992c4a1acf1e894583a4110 /llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
parent669a31d6f758c53a20cc23d7aa86d53686c0c1e4 (diff)
downloadbcm5719-llvm-25a5e4ca1f8b85b1ffb831d64cbc60599a30b9d2.tar.gz
bcm5719-llvm-25a5e4ca1f8b85b1ffb831d64cbc60599a30b9d2.zip
PR5207: Rename overloaded APInt methods set(), clear(), flip() to
setAllBits(), setBit(unsigned), etc. llvm-svn: 120564
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
index af072b94e35..4aa1328f134 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
@@ -160,7 +160,7 @@ Instruction *InstCombiner::visitExtractElementInst(ExtractElementInst &EI) {
if (EI.getOperand(0)->hasOneUse() && VectorWidth != 1) {
APInt UndefElts(VectorWidth, 0);
APInt DemandedMask(VectorWidth, 0);
- DemandedMask.set(IndexVal);
+ DemandedMask.setBit(IndexVal);
if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0),
DemandedMask, UndefElts)) {
EI.setOperand(0, V);
OpenPOWER on IntegriCloud