From b6df34cdde9c41fadcbeed89ef384d38594e020f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 13 Sep 2018 16:37:26 -0400 Subject: [PATCH] backend_x64/a64_interface: Re-enable the constant folding pass This was disabled for debugging, but never re-enabled. Just to be sure, testing was done downstream in yuzu to make sure this didn't happen to break anything (which seems to be the case). --- src/backend/x64/a64_interface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/x64/a64_interface.cpp b/src/backend/x64/a64_interface.cpp index b0608dbb..e3cbe882 100644 --- a/src/backend/x64/a64_interface.cpp +++ b/src/backend/x64/a64_interface.cpp @@ -203,6 +203,7 @@ private: IR::Block ir_block = A64::Translate(A64::LocationDescriptor{current_location}, get_code, {conf.define_unpredictable_behaviour}); Optimization::A64CallbackConfigPass(ir_block, conf); Optimization::A64GetSetElimination(ir_block); + Optimization::ConstantPropagation(ir_block); Optimization::DeadCodeElimination(ir_block); Optimization::A64MergeInterpretBlocksPass(ir_block, conf.callbacks); // printf("%s\n", IR::DumpBlock(ir_block).c_str());