diff options
| author | Zhou Sheng <zhousheng00@gmail.com> | 2007-01-11 12:24:14 +0000 |
|---|---|---|
| committer | Zhou Sheng <zhousheng00@gmail.com> | 2007-01-11 12:24:14 +0000 |
| commit | 75b871fb1ecb121f84612864d97e79d90930232c (patch) | |
| tree | af683c54f708c4ed3c49607a754c744fb1b1932d /llvm/lib/Transforms/Scalar/Reassociate.cpp | |
| parent | 691b263e07d48c6a34eed2f0dd6e8150ff51a286 (diff) | |
| download | bcm5719-llvm-75b871fb1ecb121f84612864d97e79d90930232c.tar.gz bcm5719-llvm-75b871fb1ecb121f84612864d97e79d90930232c.zip | |
For PR1043:
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
llvm-svn: 33073
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index dab2d2e3069..7550a984756 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -537,7 +537,7 @@ Value *Reassociate::OptimizeExpression(BinaryOperator *I, } // Check for destructive annihilation due to a constant being used. - if (ConstantIntegral *CstVal = dyn_cast<ConstantIntegral>(Ops.back().Op)) + if (ConstantInt *CstVal = dyn_cast<ConstantInt>(Ops.back().Op)) switch (Opcode) { default: break; case Instruction::And: @@ -591,7 +591,7 @@ Value *Reassociate::OptimizeExpression(BinaryOperator *I, return Constant::getNullValue(X->getType()); } else if (Opcode == Instruction::Or) { // ...|X|~X = -1 ++NumAnnihil; - return ConstantIntegral::getAllOnesValue(X->getType()); + return ConstantInt::getAllOnesValue(X->getType()); } } } |

