diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-02 16:04:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-02 16:04:08 +0000 |
| commit | dcf953bcf672f9e5d6bba395a8530c91123b741a (patch) | |
| tree | f6af608c67c6d32df015a1e0ba928622193886ad /lib/Analysis | |
| parent | 8afb2667ae8851e383620c76f7579a320f5f24de (diff) | |
| download | external_llvm-dcf953bcf672f9e5d6bba395a8530c91123b741a.zip external_llvm-dcf953bcf672f9e5d6bba395a8530c91123b741a.tar.gz external_llvm-dcf953bcf672f9e5d6bba395a8530c91123b741a.tar.bz2 | |
do not try to analyze bitcasts from i64 to <2 x i32> in ComputedMaskedBits. While
we could do this, doing so requires adjusting the demanded mask and the code isn't
doing that yet. This fixes PR4495
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74699 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/ValueTracking.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 7509e91..07a18fe 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -249,7 +249,10 @@ void llvm::ComputeMaskedBits(Value *V, const APInt &Mask, } case Instruction::BitCast: { const Type *SrcTy = I->getOperand(0)->getType(); - if (SrcTy->isInteger() || isa<PointerType>(SrcTy)) { + if ((SrcTy->isInteger() || isa<PointerType>(SrcTy)) && + // TODO: For now, not handling conversions like: + // (bitcast i64 %x to <2 x i32>) + !isa<VectorType>(I->getType())) { ComputeMaskedBits(I->getOperand(0), Mask, KnownZero, KnownOne, TD, Depth+1); return; |
