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 | edb8407f0ce85839c72950e66bafc3260b5a6539 (patch) | |
tree | b30fabccd3cf6ed0fee18bcfc11546364f7556ab /llvm/lib/Analysis | |
parent | f3f6aaa2c3490d760feee6847f7c2292aed6b2a5 (diff) | |
download | bcm5719-llvm-edb8407f0ce85839c72950e66bafc3260b5a6539.tar.gz bcm5719-llvm-edb8407f0ce85839c72950e66bafc3260b5a6539.zip |
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
llvm-svn: 74699
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 7509e91bdc8..07a18fe4de4 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/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; |