[PATCH] D14038: SelectionDAG: Match min/max if the scalar operation is legal

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 10 19:12:53 PST 2015


arsenm updated this revision to Diff 42493.
arsenm added a comment.
Herald added a reviewer: tstellarAMD.

Change existing loop with getTypeToTransformTo to find final type. Try to use the scalar operation if VSELECT is illegal.


http://reviews.llvm.org/D14038

Files:
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  test/CodeGen/AMDGPU/fmax_legacy.ll
  test/CodeGen/AMDGPU/fmin_legacy.ll
  test/CodeGen/AMDGPU/max.ll
  test/CodeGen/AMDGPU/min.ll
  test/CodeGen/AMDGPU/sminmax.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14038.42493.patch
Type: text/x-patch
Size: 24752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151211/783405d1/attachment.bin>


More information about the llvm-commits mailing list