[PATCH] D91876: [DAG] Move vselect(icmp_ult, -1, add(x,y)) -> uaddsat(x,y) to DAGCombine (PR40111)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 27 08:40:55 PST 2020


RKSimon updated this revision to Diff 308067.
RKSimon edited the summary of this revision.
RKSimon added a comment.

Only expand UADDSAT using UMIN if its legal (+ the same for USUBSAT with UMAX). Move the 4i32/2i64 UADDSAT custom lowering to SSE41+


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91876/new/

https://reviews.llvm.org/D91876

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sat-add.ll
  llvm/test/CodeGen/PowerPC/sat-add.ll
  llvm/test/CodeGen/X86/sat-add.ll
  llvm/test/CodeGen/X86/uadd_sat_vec.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91876.308067.patch
Type: text/x-patch
Size: 44435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201127/490af873/attachment.bin>


More information about the llvm-commits mailing list