summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-12 18:41:03 +0000
committerChris Lattner <sabre@nondot.org>2006-12-12 18:41:03 +0000
commitade1f6894d18728e0a1e0f2e7f91332da3fb40c0 (patch)
treee10abc4efd5f850925e2b372e64217b9719a93fa /llvm/lib/Transforms/Scalar
parent67d1c8ae0ebde4d9a308f37e82e607cfb83768ea (diff)
downloadbcm5719-llvm-ade1f6894d18728e0a1e0f2e7f91332da3fb40c0.tar.gz
bcm5719-llvm-ade1f6894d18728e0a1e0f2e7f91332da3fb40c0.zip
Fix regression on 400.perlbench last night.
llvm-svn: 32486
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 57b17a9c722..d15a843d408 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud