diff options
| author | 2022-10-25 12:57:25 +0800 | |
|---|---|---|
| committer | 2022-10-25 12:57:25 +0800 | |
| commit | 165bce3c2d265760190ea848a064f0d6538710bb (patch) | |
| tree | 56a7e2f101a87c95ea09aeaacc46b5ce2229cd73 /src/shader_recompiler/frontend/ir/microinstruction.cpp | |
| parent | Merge pull request #8873 from vonchenplus/fix_legacy_location_error (diff) | |
| download | yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.gz yuzu-165bce3c2d265760190ea848a064f0d6538710bb.tar.xz yuzu-165bce3c2d265760190ea848a064f0d6538710bb.zip | |
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.cpp | 5 |
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 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) { | |||
| 325 | phi_args.emplace_back(predecessor, value); | 325 | phi_args.emplace_back(predecessor, value); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | void Inst::ErasePhiOperand(size_t index) { | ||
| 329 | const auto operand_it{phi_args.begin() + static_cast<ptrdiff_t>(index)}; | ||
| 330 | phi_args.erase(operand_it); | ||
| 331 | } | ||
| 332 | |||
| 333 | void Inst::OrderPhiArgs() { | 328 | void Inst::OrderPhiArgs() { |
| 334 | if (op != Opcode::Phi) { | 329 | if (op != Opcode::Phi) { |
| 335 | throw LogicError("{} is not a Phi instruction", op); | 330 | throw LogicError("{} is not a Phi instruction", op); |