[llvm-commits] [llvm] r131538 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Stuart Hastings
stuart at apple.com
Wed May 18 08:54:26 PDT 2011
Author: stuart
Date: Wed May 18 10:54:26 2011
New Revision: 131538
URL: http://llvm.org/viewvc/llvm-project?rev=131538&view=rev
Log:
Fix inelegant initialization.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=131538&r1=131537&r2=131538&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Wed May 18 10:54:26 2011
@@ -598,8 +598,7 @@
unsigned VWidth =
cast<VectorType>(II->getArgOperand(0)->getType())->getNumElements();
unsigned LowHalfElts = VWidth / 2;
- APInt InputDemandedElts(VWidth, 0);
- InputDemandedElts = InputDemandedElts.getBitsSet(VWidth, 0, LowHalfElts);
+ APInt InputDemandedElts(APInt::getBitsSet(VWidth, 0, LowHalfElts));
APInt UndefElts(VWidth, 0);
if (Value *TmpV = SimplifyDemandedVectorElts(II->getArgOperand(0),
InputDemandedElts,
More information about the llvm-commits
mailing list