ir_opt: Constant propagation pass works better with a DCE just before it

This commit is contained in:
MerryMage 2017-02-19 11:05:16 +00:00
parent 157585887e
commit 3768174783

View file

@ -105,6 +105,7 @@ private:
IR::Block ir_block = Arm::Translate(descriptor, callbacks.memory.ReadCode);
Optimization::GetSetElimination(ir_block);
Optimization::DeadCodeElimination(ir_block);
Optimization::ConstantPropagation(ir_block, callbacks.memory);
Optimization::DeadCodeElimination(ir_block);
Optimization::VerificationPass(ir_block);