Skip to content

Remove workaround flags for Peano -O2 issue#2926

Open
jgmelber wants to merge 8 commits intomainfrom
peano-patch-opt-level
Open

Remove workaround flags for Peano -O2 issue#2926
jgmelber wants to merge 8 commits intomainfrom
peano-patch-opt-level

Conversation

@jgmelber
Copy link
Collaborator

@jgmelber jgmelber commented Mar 5, 2026

Removed workaround for Peano -O2 miscompilation issue.

jgmelber added 3 commits March 5, 2026 11:32
Removed workaround for Peano -O2 miscompilation issue.
Removed workaround for Peano -O2 miscompilation issue.
@jgmelber jgmelber changed the title Remove workaround flags for Peano -O2 issue Remove workaround flags for Peano -O2 issue and layernorm XFAIL Mar 5, 2026
@jgmelber jgmelber changed the title Remove workaround flags for Peano -O2 issue and layernorm XFAIL Remove workaround flags for Peano -O2 issue Mar 6, 2026
@jgmelber jgmelber marked this pull request as ready for review March 7, 2026 00:20
@jgmelber jgmelber requested a review from denolf as a code owner March 7, 2026 00:20
Copilot AI review requested due to automatic review settings March 7, 2026 00:20
@jgmelber jgmelber added this pull request to the merge queue Mar 7, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes a temporary compiler workaround from two vision example Makefiles. The workaround had downgraded the Peano compiler optimization level from -O2 to -O1 for AIE2P targets to avoid a miscompilation issue with aie::lt/aie::select loops. Now that the upstream llvm-aie fix is presumably available, the workaround is no longer needed and both Makefiles will use the default -O2 flags defined in programming_examples/makefile-common.

Changes:

  • Removed the PEANOWRAP2P_FLAGS override (substituting -O2 with -O1) from edge_detect/Makefile and color_threshold/Makefile.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
programming_examples/vision/edge_detect/Makefile Removed 5-line workaround block that downgraded Peano optimization to -O1 for AIE2P
programming_examples/vision/color_threshold/Makefile Removed identical 5-line workaround block that downgraded Peano optimization to -O1 for AIE2P

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jgmelber jgmelber removed this pull request from the merge queue due to a manual request Mar 7, 2026
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.

3 participants