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/ssa_rewrite_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/ssa_rewrite_pass.cpp')
| -rw-r--r-- | src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp b/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp index 19d35b1f8..f89fd51c8 100644 --- a/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp +++ b/src/shader_recompiler/ir_opt/ssa_rewrite_pass.cpp | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | #include <boost/container/flat_set.hpp> | 23 | #include <boost/container/flat_set.hpp> |
| 24 | 24 | ||
| 25 | #include "shader_recompiler/frontend/ir/basic_block.h" | 25 | #include "shader_recompiler/frontend/ir/basic_block.h" |
| 26 | #include "shader_recompiler/frontend/ir/function.h" | ||
| 27 | #include "shader_recompiler/frontend/ir/microinstruction.h" | 26 | #include "shader_recompiler/frontend/ir/microinstruction.h" |
| 28 | #include "shader_recompiler/frontend/ir/opcodes.h" | 27 | #include "shader_recompiler/frontend/ir/opcodes.h" |
| 29 | #include "shader_recompiler/frontend/ir/pred.h" | 28 | #include "shader_recompiler/frontend/ir/pred.h" |
| @@ -262,9 +261,9 @@ void VisitBlock(Pass& pass, IR::Block* block) { | |||
| 262 | } | 261 | } |
| 263 | } // Anonymous namespace | 262 | } // Anonymous namespace |
| 264 | 263 | ||
| 265 | void SsaRewritePass(std::span<IR::Block* const> post_order_blocks) { | 264 | void SsaRewritePass(IR::Program& program) { |
| 266 | Pass pass; | 265 | Pass pass; |
| 267 | for (IR::Block* const block : post_order_blocks | std::views::reverse) { | 266 | for (IR::Block* const block : program.post_order_blocks | std::views::reverse) { |
| 268 | VisitBlock(pass, block); | 267 | VisitBlock(pass, block); |
| 269 | } | 268 | } |
| 270 | } | 269 | } |