Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor[venom]: remove unused method in make_ssa.py #4012

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions vyper/venom/passes/make_ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,6 @@ def _place_phi(self, var: IRVariable, basic_block: IRBasicBlock):

basic_block.insert_instruction(IRInstruction("phi", args, var), 0)

def _add_phi(self, var: IRVariable, basic_block: IRBasicBlock) -> bool:
for inst in basic_block.instructions:
if inst.opcode == "phi" and inst.output is not None and inst.output.name == var.name:
return False

args: list[IROperand] = []
for bb in basic_block.cfg_in:
if bb == basic_block:
continue

args.append(bb.label)
args.append(var)

phi = IRInstruction("phi", args, var)
basic_block.instructions.insert(0, phi)

return True

def _rename_vars(self, basic_block: IRBasicBlock):
"""
Rename variables. This follows the placement of phi nodes.
Expand Down
Loading