mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Include const prop as part of -raise
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f78032fe06
commit
bd70bb94d6
@ -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…
x
Reference in New Issue
Block a user