aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/microinstruction.cpp
diff options
context:
space:
mode:
authorFeng Chen <VonChenPlus@gmail.com>2022-10-25 12:57:25 +0800
committerGitHub <noreply@github.com>2022-10-25 12:57:25 +0800
commit165bce3c2d265760190ea848a064f0d6538710bb (patch)
tree56a7e2f101a87c95ea09aeaacc46b5ce2229cd73 /src/shader_recompiler/frontend/ir/microinstruction.cpp
parentcbb6c24215aa0d5c0e620ff75f29a19275521a43 (diff)
Revert "shader_recompiler/dead_code_elimination: Add DeadBranchElimination pass"
Diffstat (limited to 'src/shader_recompiler/frontend/ir/microinstruction.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/microinstruction.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp
index 468782eb17..84417980bc 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);