diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-04-29 20:54:56 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-04-29 20:54:56 +0000 |
commit | 9190b4add8a84ec662c323cec5daf31dc1508eda (patch) | |
tree | 0ab73d6c9b8f4379679a9748ae80a89709e855a1 /llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | |
parent | 909b277845a75595651de1e93b8e315d5d632077 (diff) | |
download | bcm5719-llvm-9190b4add8a84ec662c323cec5daf31dc1508eda.tar.gz bcm5719-llvm-9190b4add8a84ec662c323cec5daf31dc1508eda.zip |
[InstCombine] clean up; NFC
llvm-svn: 268099
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index 27e1f24f2ff..31eb6aed31c 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp @@ -898,7 +898,7 @@ Value *InstCombiner::SimplifyShrShlDemandedBits(Instruction *Shr, Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, APInt &UndefElts, unsigned Depth) { - unsigned VWidth = cast<VectorType>(V->getType())->getNumElements(); + unsigned VWidth = V->getType()->getVectorNumElements(); APInt EltMask(APInt::getAllOnesValue(VWidth)); assert((DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!"); |