diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-18 09:21:25 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-18 09:21:25 +0000 |
commit | 992d0e0b7452247cf2d99b6969e6264e47a3d27a (patch) | |
tree | 0452d24138359b3e7b28c3f2823a5ed0433bb5bc /llvm/lib | |
parent | 44e9836b173f75ab715f4501c46f4b5831879378 (diff) | |
download | bcm5719-llvm-992d0e0b7452247cf2d99b6969e6264e47a3d27a.tar.gz bcm5719-llvm-992d0e0b7452247cf2d99b6969e6264e47a3d27a.zip |
Remove no-op check.
llvm-svn: 76302
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index f9e76578c73..0c010cfa9fe 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -8453,8 +8453,7 @@ Instruction *InstCombiner::visitTrunc(TruncInst &CI) { uint32_t SrcBitWidth = Src->getType()->getScalarSizeInBits(); // Canonicalize trunc x to i1 -> (icmp ne (and x, 1), 0) - if (DestBitWidth == 1 && - isa<VectorType>(Ty) == isa<VectorType>(Src->getType())) { + if (DestBitWidth == 1) { Constant *One = Context->getConstantInt(Src->getType(), 1); Src = InsertNewInstBefore(BinaryOperator::CreateAnd(Src, One, "tmp"), CI); Value *Zero = Context->getNullValue(Src->getType()); |