diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-11 18:21:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-11 18:21:29 +0000 |
commit | 4fe16d607d11e29d742208894909733f5ad01f8f (patch) | |
tree | a669ba57373e87d31c3af6f301fe4a61f773f4b3 /lib/Transforms/Scalar/PredicateSimplifier.cpp | |
parent | 34dceb47573b0aedd188b5e72bb848ba29a4960f (diff) |
Rename BoolTy as Int1Ty. Patch by Sheng Zhou.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index 717b8da578..c577409f9a 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -1129,9 +1129,9 @@ namespace { ConstantInt *CB, *A; if ((CB = dyn_cast<ConstantInt>(Canonical)) && - CB->getType() == Type::BoolTy) { + CB->getType() == Type::Int1Ty) { if ((A = dyn_cast<ConstantInt>(LHS)) && - A->getType() == Type::BoolTy) + A->getType() == Type::Int1Ty) add(RHS, ConstantInt::get(A->getBoolValue() ^ CB->getBoolValue()), ICmpInst::ICMP_EQ, NewContext); @@ -1249,7 +1249,7 @@ namespace { if (isa<ConstantInt>(Unknown)) One = ConstantInt::get(Ty, 1); else if (isa<ConstantInt>(Unknown) && - Unknown->getType() == Type::BoolTy) + Unknown->getType() == Type::Int1Ty) One = ConstantInt::getTrue(); if (One) add(Unknown, One, ICmpInst::ICMP_EQ, NewContext); |