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

Avoid generating name collisions in CSE #7821

Merged
merged 5 commits into from
Sep 1, 2023

Conversation

abadams
Copy link
Member

@abadams abadams commented Aug 29, 2023

Alternative to #7801 (See the discussion there)

Fixes #4124

Alternative to #7801 (See the discussion there)

Fixes #4124
// introduce, we can save some time by only adding names that could
// plausibly collide. In the vast majority of cases, this check will
// result in the set being empty.
if (op->name.size() > 1 &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mild suggestion: pull this out into is_temporary_name() and add a make_temporary_name() that is a wrapper for unique_name('t')?

@steven-johnson
Copy link
Contributor

Looks like some hvx failures were injected recently, somehow, they are failing in all PRs...

@abadams abadams merged commit 8188b42 into main Sep 1, 2023
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Avoid generating name collisions in CSE

Alternative to halide#7801 (See the discussion there)

Fixes halide#4124

* Add missing test

* Minor cleanup

* clang-format
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.

CSE cannot handle variables names with 't' + number properly
2 participants