diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-12 19:11:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-12 19:11:20 +0000 |
| commit | 2dc148e89dd0933ff16c52f12171dc3345807311 (patch) | |
| tree | 1ace2ddb977d05422fa0afd9793b4c1745d048b2 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
| parent | ade1f6894d18728e0a1e0f2e7f91332da3fb40c0 (diff) | |
| download | bcm5719-llvm-2dc148e89dd0933ff16c52f12171dc3345807311.tar.gz bcm5719-llvm-2dc148e89dd0933ff16c52f12171dc3345807311.zip | |
this can be trunc or bitcast, per line 3092.
llvm-svn: 32487
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index d15a843d408..a1ed221a7e1 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::getTrunc(AndCI, I.getType()); + Constant *C3 = ConstantExpr::getTruncOrBitCast(AndCI,I.getType()); if (ConstantExpr::getAnd(C3, AndRHS) == AndRHS) // trunc(C1)&C2 return ReplaceInstUsesWith(I, AndRHS); } |

