mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Include const prop as part of -raise
llvm-svn: 1379
This commit is contained in:
parent
9158ea6980
commit
4d2046a71e
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user