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

Stop interleaver from expanding the scope of letstmts #7908

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Conversation

abadams
Copy link
Member

@abadams abadams commented Oct 19, 2023

In the following code:

let a = b in
  X
let a = c in
  Y

If Stmt X successfully had stores interleaved, we were re-nesting it like so:

let a = b in
  X
  let a = c in
    Y

This introduces a shadowed variable 'a', which is illegal at this stage of lowering.

Fixes #7906

Also some drive-by fixes to earlier tests that had debugging code left in.

In the following code:

let a = b in
  X
let a = c in
  Y

If Stmt X successfully had stores interleaved, it was re-nesting it like
so:

let a = b in
  X
  let a = c in
    Y

This introduces a shadowed variable 'a', which is illegal at this stage
of lowering.

Fixes #7906

Also some drive-by fixes to earlier tests that had debugging code left
in.
@abadams abadams merged commit bd1d4df into main Oct 20, 2023
3 checks passed
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
In the following code:

let a = b in
  X
let a = c in
  Y

If Stmt X successfully had stores interleaved, it was re-nesting it like
so:

let a = b in
  X
  let a = c in
    Y

This introduces a shadowed variable 'a', which is illegal at this stage
of lowering.

Fixes halide#7906

Also some drive-by fixes to earlier tests that had debugging code left
in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

duplicate intermediate names generated that cause simpiler to fail
2 participants