[AMDGPU] Match med3 for (max (min ..))
authorpvanhout <pierre.vanhoutryve@amd.com>
Thu, 2 Mar 2023 14:42:24 +0000 (15:42 +0100)
committerpvanhout <pierre.vanhoutryve@amd.com>
Tue, 7 Mar 2023 10:14:31 +0000 (11:14 +0100)
commitedca49cfb766ef4f6e665b13808976d119bc1f1d
treeb3accb16238be69bc914c54514e6ebebdc2eb4c2
parent226778e1b2d185e8f4a817b24ee195e7e0f3ecc3
[AMDGPU] Match med3 for (max (min ..))

We previously only matched (min (max ...))

Depends on D144728

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D145159
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.h
llvm/test/CodeGen/AMDGPU/mad_uint24.ll
llvm/test/CodeGen/AMDGPU/saddsat.ll
llvm/test/CodeGen/AMDGPU/smed3.ll
llvm/test/CodeGen/AMDGPU/ssubsat.ll
llvm/test/CodeGen/AMDGPU/umed3.ll
llvm/test/CodeGen/AMDGPU/v_sat_pk_u8_i16.ll