OSDN Git Service

AMDGPU: Improve extract_vector_elt reduction combine
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 15 Aug 2018 21:34:06 +0000 (21:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 15 Aug 2018 21:34:06 +0000 (21:34 +0000)
commit6030329f4bc790754c38ed3c19ccf4b7166d1f90
treed3bd228966e7c7e1f36da226c0cfc84876faf736
parent5f9b848ed3eccf3b014d36a49cb3d10bf70c82da
AMDGPU: Improve extract_vector_elt reduction combine

Handle fmul, fsub and preserve flags.

Also really test minnum/maxnum reductions.
The existing tests were only checking from
minnum/maxnum matched from a fast math compare
and select which is not the same.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339820 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp
test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
test/CodeGen/AMDGPU/reduction.ll