summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-28 23:35:22 +0000
committerChris Lattner <sabre@nondot.org>2006-09-28 23:35:22 +0000
commit6ab03f6a08d34889d694e1f43f99ba9b8328dcee (patch)
tree9d649e009e973007ffc1dcdd43c173bd96b38359 /llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
parent7843066e15c526b9d4e1364a3a344b9f6fa678e0 (diff)
downloadbcm5719-llvm-6ab03f6a08d34889d694e1f43f99ba9b8328dcee.tar.gz
bcm5719-llvm-6ab03f6a08d34889d694e1f43f99ba9b8328dcee.zip
Eliminate ConstantBool::True and ConstantBool::False. Instead, provide
ConstantBool::getTrue() and ConstantBool::getFalse(). llvm-svn: 30665
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
index 722a2246398..4c5025659cc 100644
--- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
+++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
@@ -788,12 +788,12 @@ void CEE::PropagateBranchInfo(BranchInst *BI) {
// Propagate information into the true block...
//
- PropagateEquality(BI->getCondition(), ConstantBool::True,
+ PropagateEquality(BI->getCondition(), ConstantBool::getTrue(),
getRegionInfo(BI->getSuccessor(0)));
// Propagate information into the false block...
//
- PropagateEquality(BI->getCondition(), ConstantBool::False,
+ PropagateEquality(BI->getCondition(), ConstantBool::getFalse(),
getRegionInfo(BI->getSuccessor(1)));
}
@@ -971,8 +971,7 @@ void CEE::IncorporateInstruction(Instruction *Inst, RegionInfo &RI) {
// See if we can figure out a result for this instruction...
Relation::KnownResult Result = getSetCCResult(SCI, RI);
if (Result != Relation::Unknown) {
- PropagateEquality(SCI, Result ? ConstantBool::True : ConstantBool::False,
- RI);
+ PropagateEquality(SCI, ConstantBool::get(Result != 0), RI);
}
}
}
OpenPOWER on IntegriCloud