diff options
author | Feng Chen <VonChenPlus@gmail.com> | 2022-10-25 06:57:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 06:57:25 +0200 |
commit | 165bce3c2d265760190ea848a064f0d6538710bb (patch) | |
tree | 56a7e2f101a87c95ea09aeaacc46b5ce2229cd73 /src/shader_recompiler/frontend/ir | |
parent | Merge pull request #8873 from vonchenplus/fix_legacy_location_error (diff) | |
download | yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.gz yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.bz2 yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.lz yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.xz yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.zst yuzu-165bce3c2d265760190ea848a064f0d6538710bb.zip |
Diffstat (limited to 'src/shader_recompiler/frontend/ir')
-rw-r--r-- | src/shader_recompiler/frontend/ir/microinstruction.cpp | 5 | ||||
-rw-r--r-- | src/shader_recompiler/frontend/ir/value.h | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp index 468782eb1..84417980b 100644 --- a/src/shader_recompiler/frontend/ir/microinstruction.cpp +++ b/src/shader_recompiler/frontend/ir/microinstruction.cpp @@ -325,11 +325,6 @@ void Inst::AddPhiOperand(Block* predecessor, const Value& value) { phi_args.emplace_back(predecessor, value); } -void Inst::ErasePhiOperand(size_t index) { - const auto operand_it{phi_args.begin() + static_cast<ptrdiff_t>(index)}; - phi_args.erase(operand_it); -} - void Inst::OrderPhiArgs() { if (op != Opcode::Phi) { throw LogicError("{} is not a Phi instruction", op); diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h index 1a2e4ccb6..6a673ca05 100644 --- a/src/shader_recompiler/frontend/ir/value.h +++ b/src/shader_recompiler/frontend/ir/value.h @@ -178,13 +178,9 @@ 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(); |