diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-03-22 18:34:31 -0400 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-03-23 17:57:22 -0400 |
commit | 67159e3be76cf468288ae492ea22fc43a77a9d1e (patch) | |
tree | 1430335870a66823463f56f86cd98de6f8d5c6d8 /src/shader_recompiler/frontend/ir/value.h | |
parent | f10d40a0a25dc6709b8cbd0a6793175434db6472 (diff) |
dead_code_elimination_pass: Remove unreachable Phi arguments
Diffstat (limited to 'src/shader_recompiler/frontend/ir/value.h')
-rw-r--r-- | src/shader_recompiler/frontend/ir/value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h index 9475798524..14f6e55bc6 100644 --- a/src/shader_recompiler/frontend/ir/value.h +++ b/src/shader_recompiler/frontend/ir/value.h @@ -179,9 +179,13 @@ public: /// Get a pointer to the block of a phi argument. [[nodiscard]] Block* PhiBlock(size_t index) const; + /// Add phi operand to a phi instruction. void AddPhiOperand(Block* predecessor, const Value& value); + // Erase the phi operand at the given index. + void ErasePhiOperand(size_t index); + /// Orders the Phi arguments from farthest away to nearest. void OrderPhiArgs(); |