From 3768174783b466e5619a23ceb1bcf6a003185e49 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 19 Feb 2017 11:05:16 +0000 Subject: [PATCH] ir_opt: Constant propagation pass works better with a DCE just before it --- src/backend_x64/interface_x64.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend_x64/interface_x64.cpp b/src/backend_x64/interface_x64.cpp index 5511a019..7724a7ff 100644 --- a/src/backend_x64/interface_x64.cpp +++ b/src/backend_x64/interface_x64.cpp @@ -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);