[PATCH] D17898: Implement expansion of {s,u}{min,max}

Jan Vesely via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 4 14:51:03 PST 2016


jvesely created this revision.
jvesely added reviewers: arsenm, tstellarAMD.
jvesely added a subscriber: llvm-commits.
jvesely set the repository for this revision to rL LLVM.

Looks like something uses min/max for illegal types even if the original code uses comparison.
The signed version just undos the switch.

Fixes {u,}long_{min,max,clamp} opencl piglit regressions on r600.


Repository:
  rL LLVM

http://reviews.llvm.org/D17898

Files:
  lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  test/CodeGen/AMDGPU/max.ll
  test/CodeGen/AMDGPU/min.ll
  test/CodeGen/AMDGPU/sminmax.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17898.49857.patch
Type: text/x-patch
Size: 30400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160304/88b0f858/attachment.bin>


More information about the llvm-commits mailing list