diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-26 18:58:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 18:58:55 +0000 |
commit | ee568eb45996030ac3ca97b855fb50ee9fba04e1 (patch) | |
tree | 4259c1a751947e008f85806c8475f9d7d8e7ae4c /llvm/lib/Transforms | |
parent | f0f9105d4f8433dc328772e3e7b208bd8cf908ec (diff) | |
download | bcm5719-llvm-ee568eb45996030ac3ca97b855fb50ee9fba04e1.tar.gz bcm5719-llvm-ee568eb45996030ac3ca97b855fb50ee9fba04e1.zip |
Include const prop as part of -raise
llvm-svn: 1379
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/LevelRaise.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp index 3472dec506e..4828f753e86 100644 --- a/llvm/lib/Transforms/LevelRaise.cpp +++ b/llvm/lib/Transforms/LevelRaise.cpp @@ -15,6 +15,7 @@ #include "llvm/ConstPoolVals.h" #include "llvm/Optimizations/ConstantHandling.h" #include "llvm/Optimizations/DCE.h" +#include "llvm/Optimizations/ConstantProp.h" #include "llvm/Analysis/Expressions.h" #include <algorithm> @@ -416,7 +417,8 @@ static bool DoRaisePass(Method *M) { BasicBlock::InstListType &BIL = BB->getInstList(); for (BasicBlock::iterator BI = BB->begin(); BI != BB->end();) { - if (opt::DeadCodeElimination::dceInstruction(BIL, BI)) { + if (opt::DeadCodeElimination::dceInstruction(BIL, BI) || + opt::ConstantPropogation::doConstantPropogation(BB, BI)) { Changed = true; #ifdef DEBUG_PEEPHOLE_INSTS cerr << "DeadCode Elinated!\n"; |