Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Handle lineinfo emission correctly across phi node stripping.
As title.
  • Loading branch information
stuartarchibald committed Jul 9, 2021
commit f6bef9de3ca480cf9c18138b236ac0854403d65c
7 changes: 4 additions & 3 deletions numba/core/typed_passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,13 +843,14 @@ def _strip_phi_nodes(self, func_ir):
for target, rhs in exporters[label]:
# If RHS is undefined
if rhs is ir.UNDEFINED:
# Put in a NULL initializer
rhs = ir.Expr.null(loc=target.loc)
# Put in a NULL initializer, set the location to be in what
# will eventually materialize as the prologue.
rhs = ir.Expr.null(loc=func_ir.loc)

assign = ir.Assign(
>
value=rhs,
loc=target.loc
loc=rhs.loc
)
# Insert at the earliest possible location; i.e. after the
# last assignment to rhs
Expand Down