[Hexagon] Add HVX support for ISD::SMAX/SMIN/UMAX/UMIN instead of custom dag patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Nov 2020 15:45:58 +0000 (15:45 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Nov 2020 15:46:11 +0000 (15:46 +0000)
commitc4628460b74bcdc34041cd11a8959ca336637ee2
treea533fc8046ebf97982cc27ff7d1bd1225bb97f82
parent89a0f48c58f82262c7ce2b9ca51ffad0ffc559ea
[Hexagon] Add HVX support for ISD::SMAX/SMIN/UMAX/UMIN instead of custom dag patterns

Followup to D92112 now that I've learnt about HVX type splitting.

This is some necessary cleanup work for min/max ops to eventually help us move the add/sub sat patterns into DAGCombine - D91876.

Differential Revision: https://reviews.llvm.org/D92169
llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
llvm/lib/Target/Hexagon/HexagonPatternsHVX.td
llvm/test/CodeGen/Hexagon/autohvx/minmax-128b.ll
llvm/test/CodeGen/Hexagon/autohvx/minmax-64b.ll