diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-01 00:46:38 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | 5f22cd89e20cd39c1395b7bd3b8e667a40f53751 (patch) | |
tree | cbeafb6b9b75150822c216eb41ff7d098872b3d9 /src | |
parent | shader: Implement LDG .U.128 as .128 (diff) | |
download | yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.tar yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.tar.gz yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.tar.bz2 yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.tar.lz yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.tar.xz yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.tar.zst yuzu-5f22cd89e20cd39c1395b7bd3b8e667a40f53751.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp index 052f1609b..7da4d50ef 100644 --- a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp +++ b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp @@ -5,6 +5,7 @@ #include <algorithm> #include <tuple> #include <type_traits> +#include <ranges> #include "common/bit_cast.h" #include "common/bit_util.h" @@ -424,7 +425,7 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) { } // Anonymous namespace void ConstantPropagationPass(IR::Program& program) { - for (IR::Block* const block : program.post_order_blocks) { + for (IR::Block* const block : program.post_order_blocks | std::views::reverse) { for (IR::Inst& inst : block->Instructions()) { ConstantPropagation(*block, inst); } |