diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-12 18:41:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-12 18:41:03 +0000 |
commit | 078b631ff334b5fbd5953e4f0c35db5e5b25f88e (patch) | |
tree | 2d6c530a7c73f781b9e65a6d0fbe8e2b57c15aec /lib/Transforms | |
parent | a898ce687a3a835ae47548101fe847ca17d85f48 (diff) |
Fix regression on 400.perlbench last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 57b17a9c72..d15a843d40 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -3112,7 +3112,7 @@ Instruction *InstCombiner::visitAnd(BinaryOperator &I) { } else if (CastOp->getOpcode() == Instruction::Or) { // Change: and (cast (or X, C1) to T), C2 // into : trunc(C1)&C2 iff trunc(C1)&C2 == C2 - Constant *C3 = ConstantExpr::getBitCast(AndCI, I.getType()); + Constant *C3 = ConstantExpr::getTrunc(AndCI, I.getType()); if (ConstantExpr::getAnd(C3, AndRHS) == AndRHS) // trunc(C1)&C2 return ReplaceInstUsesWith(I, AndRHS); } |