ir_opt: Constant propagation pass works better with a DCE just before it
This commit is contained in:
parent
157585887e
commit
3768174783
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ private:
|
||||||
|
|
||||||
IR::Block ir_block = Arm::Translate(descriptor, callbacks.memory.ReadCode);
|
IR::Block ir_block = Arm::Translate(descriptor, callbacks.memory.ReadCode);
|
||||||
Optimization::GetSetElimination(ir_block);
|
Optimization::GetSetElimination(ir_block);
|
||||||
|
Optimization::DeadCodeElimination(ir_block);
|
||||||
Optimization::ConstantPropagation(ir_block, callbacks.memory);
|
Optimization::ConstantPropagation(ir_block, callbacks.memory);
|
||||||
Optimization::DeadCodeElimination(ir_block);
|
Optimization::DeadCodeElimination(ir_block);
|
||||||
Optimization::VerificationPass(ir_block);
|
Optimization::VerificationPass(ir_block);
|
||||||
|
|
Loading…
Reference in a new issue