diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-28 23:35:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-28 23:35:22 +0000 |
commit | 6ab03f6a08d34889d694e1f43f99ba9b8328dcee (patch) | |
tree | 9d649e009e973007ffc1dcdd43c173bd96b38359 /llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp | |
parent | 7843066e15c526b9d4e1364a3a344b9f6fa678e0 (diff) | |
download | bcm5719-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.cpp | 7 |
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); } } } |