Skip to content

Fix internal error sliding through a compute_with-fused loop#9149

Merged
abadams merged 1 commit into
mainfrom
abadams/harris_sliding_bug
May 22, 2026
Merged

Fix internal error sliding through a compute_with-fused loop#9149
abadams merged 1 commit into
mainfrom
abadams/harris_sliding_bug

Conversation

@abadams
Copy link
Copy Markdown
Member

@abadams abadams commented May 21, 2026

While messing with alternative harris schedules, I encountered an internal compiler error about a missing symbol. Claude says:

AddLoopMinOrig referred to a Variable(".loop_min") for the value of its .loop_min.orig let. For loops renamed by compute_with's substitute_fused_bounds, no .loop_min let exists under the fused name, so sliding window emitted references to a non-existent symbol and codegen failed with "Symbol not found: ...fused...loop_min". Use the loop's min expression directly instead.

Also fix a pre-existing oversight in apps/harris/Makefile where $(GENERATOR_OUTPUTS) was not passed to the generator.

AddLoopMinOrig referred to a Variable("<loop>.loop_min") for the value of
its .loop_min.orig let. For loops renamed by compute_with's
substitute_fused_bounds, no .loop_min let exists under the fused name,
so sliding window emitted references to a non-existent symbol and
codegen failed with "Symbol not found: ...fused...loop_min". Use the
loop's min expression directly instead.

Also fix a pre-existing oversight in apps/harris/Makefile where
\$(GENERATOR_OUTPUTS) was not passed to the generator.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@3bb5d0c). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9149   +/-   ##
=======================================
  Coverage        ?   69.29%           
=======================================
  Files           ?      254           
  Lines           ?    78219           
  Branches        ?    18714           
=======================================
  Hits            ?    54204           
  Misses          ?    18503           
  Partials        ?     5512           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@abadams abadams merged commit 8873d39 into main May 22, 2026
26 of 27 checks passed
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.

2 participants