[PATCH] D96703: [DAG] foldSubToUSubSat - fold sub(a,trunc(umin(zext(a),b))) -> usubsat(a,trunc(umin(b,c)))

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 04:33:59 PST 2021


RKSimon created this revision.
RKSimon added reviewers: craig.topper, nikic, spatel, pengfei.
Herald added subscribers: ecnelises, steven.zhang, hiraditya.
RKSimon requested review of this revision.
Herald added a project: LLVM.

This moves the last custom x86 USUBSAT fold to generic DAGCombine.

Completes PR40111


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96703

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/psubus.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96703.323715.patch
Type: text/x-patch
Size: 53292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210215/73449165/attachment.bin>


More information about the llvm-commits mailing list