This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Use the general SMAX/SMIN/UMAX/UMIN pattern matching and remove the AMDGPU implementation
ClosedPublic

Authored by RKSimon on Aug 13 2015, 4:11 AM.

Details

Summary

D9746 added general SMAX/SMIN/UMAX/UMIN pattern matching to SelectionDAGBuilder::visitSelect.

During my work on D12006 - I noticed that AMDGPU had a similar implementation that is now redundant.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon updated this revision to Diff 32043.Aug 13 2015, 4:11 AM
RKSimon retitled this revision from to [AMDGPU] Use the general SMAX/SMIN/UMAX/UMIN pattern matching and remove the AMDGPU implementation.
RKSimon updated this object.
RKSimon set the repository for this revision to rL LLVM.
RKSimon added a subscriber: llvm-commits.
arsenm accepted this revision.Aug 13 2015, 12:26 PM
arsenm edited edge metadata.

I think I tried to do this before, but hit a regression where a min/max pattern showed up during lowering since the generic min / max was only formed during SelectionDAGBuilder. I wasn't sure why min/max was only being matched so early. Was this fixed / is min/max matched in DAGCombiner now?

This revision is now accepted and ready to land.Aug 13 2015, 12:26 PM
This revision was automatically updated to reflect the committed changes.