diff options
| author | 2021-03-14 03:41:05 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:23 -0400 | |
| commit | 71f96fa6366dc6dd306a953bca1b958fb32bc55a (patch) | |
| tree | 12e13f9502e4b9510446c967a831e5d4bacb729e /src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | |
| parent | spirv: Add SignedZeroInfNanPreserve logic (diff) | |
| download | yuzu-71f96fa6366dc6dd306a953bca1b958fb32bc55a.tar.gz yuzu-71f96fa6366dc6dd306a953bca1b958fb32bc55a.tar.xz yuzu-71f96fa6366dc6dd306a953bca1b958fb32bc55a.zip | |
shader: Implement CAL inlining function calls
Diffstat (limited to 'src/shader_recompiler/ir_opt/constant_propagation_pass.cpp')
| -rw-r--r-- | src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp index 7ba9ebe9b..a39db2bf1 100644 --- a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp +++ b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | |||
| @@ -371,9 +371,11 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) { | |||
| 371 | } | 371 | } |
| 372 | } // Anonymous namespace | 372 | } // Anonymous namespace |
| 373 | 373 | ||
| 374 | void ConstantPropagationPass(IR::Block& block) { | 374 | void ConstantPropagationPass(IR::Program& program) { |
| 375 | for (IR::Inst& inst : block) { | 375 | for (IR::Block* const block : program.post_order_blocks) { |
| 376 | ConstantPropagation(block, inst); | 376 | for (IR::Inst& inst : block->Instructions()) { |
| 377 | ConstantPropagation(*block, inst); | ||
| 378 | } | ||
| 377 | } | 379 | } |
| 378 | } | 380 | } |
| 379 | 381 | ||