Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Nov 22, 2024
1 parent 280d732 commit b460c17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ def ir_node_to_venom(ir: IRnode) -> IRContext:

ctx.chain_basic_blocks()

# errors in make_ssa whether this is commented or not
# float allocas to the front of the function. we could probably move
# them to the immediate dominator of the basic block defining the alloca
# instead of the entry (which dominates all basic blocks), but this is
# done for expedience. without this step, sccp fails, possibly because
# dominators are not guaranteed to be traversed first.
ctx.float_allocas()

return ctx
Expand Down

0 comments on commit b460c17

Please sign in to comment.