mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 02:45:45 +00:00
dead_code_elimination_pass: Remove unreachable Phi arguments
This commit is contained in:
parent
f10d40a0a2
commit
67159e3be7
3 changed files with 36 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue