This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU : Additional pattern for median3 matching
ClosedPublic

Authored by aakanksha555 on Nov 13 2018, 1:33 PM.

Details

Summary

Found a missing pattern for v_med3_i16 matching
min(max(a, b), max(min(a, b), c))
Added tests to support this pattern

Diff Detail

Event Timeline

aakanksha555 created this revision.Nov 13 2018, 1:33 PM
arsenm accepted this revision.Nov 13 2018, 2:44 PM

LGTM

lib/Target/AMDGPU/SIInstructions.td
1667–1668

Spaces before //

This revision is now accepted and ready to land.Nov 13 2018, 2:44 PM
This revision was automatically updated to reflect the committed changes.
aakanksha555 marked an inline comment as done.