This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add patterns for GFX11 v_minmax and v_maxmin instructions
ClosedPublic

Authored by foad on Jun 23 2022, 7:42 AM.

Diff Detail

Event Timeline

foad created this revision.Jun 23 2022, 7:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2022, 7:42 AM
foad requested review of this revision.Jun 23 2022, 7:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2022, 7:42 AM
foad added reviewers: Joe_Nash, rampitec, Petar.Avramovic, Restricted Project.Jun 23 2022, 7:42 AM

Should include some tests with a 0/1 clamp pattern. I would hope the clamp pattern wins out

llvm/test/CodeGen/AMDGPU/minmax.ll
3

Explicit -global-isel=1/0

foad updated this revision to Diff 440932.Jun 29 2022, 4:16 AM

Rebase on D128802.

foad marked an inline comment as done.

Should include some tests with a 0/1 clamp pattern. I would hope the clamp pattern wins out

I added GFX11 coverage to clamp.ll instead and rebased this patch. Hopefully that shows what you wanted.

arsenm accepted this revision.Jul 5 2022, 7:25 AM
This revision is now accepted and ready to land.Jul 5 2022, 7:25 AM