Skip to content

CP: [SLP][TTI][AMDGPU] Add TTI hook preferSLPInstCountCheck for per-target opt-out#2677

Open
michaelselehov wants to merge 2 commits into
amd-stagingfrom
amd/dev/mselehov/cp-pr-199696
Open

CP: [SLP][TTI][AMDGPU] Add TTI hook preferSLPInstCountCheck for per-target opt-out#2677
michaelselehov wants to merge 2 commits into
amd-stagingfrom
amd/dev/mselehov/cp-pr-199696

Conversation

@michaelselehov
Copy link
Copy Markdown

Preemptive cherry pick of PRs llvm#199696 and llvm#199693 from main.

…t opt-out (llvm#199696)

Add `preferSLPInstCountCheck()` to TTI so targets can opt out of the
2-element inst-count heuristic in `getTreeCost()`. Default returns
`true`
(existing behavior unchanged). `getTreeCost()` ANDs the existing
`SLPInstCountCheck` flag with the hook result. `GCNTTIImpl` returns
`false` for gfx940/gfx941/gfx942 and gfx950.

Fixes llvm#199662.
@michaelselehov michaelselehov requested a review from ronlieb May 26, 2026 17:41
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