Skip to content

[AIE2PS] Mark all aie2ps intrinsics as having default attributes#944

Open
konstantinschwarz wants to merge 1 commit intoaie-publicfrom
kschwarz.aie2ps.intrinsics.defaultattrs
Open

[AIE2PS] Mark all aie2ps intrinsics as having default attributes#944
konstantinschwarz wants to merge 1 commit intoaie-publicfrom
kschwarz.aie2ps.intrinsics.defaultattrs

Conversation

@konstantinschwarz
Copy link
Copy Markdown
Collaborator

Without these, LLVM needs to be conservative for some intrinsics and assume they never return. Adding the default attributes enables more optimizations, similar to what was done for AIE2p.

Without these, LLVM needs to be conservative for some intrinsics and assume they never return.
Adding the default attributes enables more optimizations, similar to what was done for AIE2p.
@konstantinschwarz konstantinschwarz force-pushed the kschwarz.aie2ps.intrinsics.defaultattrs branch from e0a0282 to bcc32e6 Compare April 15, 2026 22:56
@konstantinschwarz konstantinschwarz enabled auto-merge (rebase) April 15, 2026 22:57
@F-Stuckmann
Copy link
Copy Markdown
Collaborator

How does the QoR look like?

@konstantinschwarz
Copy link
Copy Markdown
Collaborator Author

konstantinschwarz commented Apr 17, 2026

Mostly flat. This was specifically targeting MX6 kernels, for which this is pretty effective (~6% improvement).
The regressions are in topk1 and topk2, in the fp16 variants. Looking at the code, I think there are a few missing peephole patterns for fp16 operations that can bring us back the lost performance.

Core_Compute_Insn_Count_perf_sorted_reduced

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