[all-commits] [llvm/llvm-project] 761bbe: [DAG] foldSubToUSubSat - fold sub(a, trunc(umin(zex...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Feb 20 04:02:34 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 761bbed264f7f524fbf0e57d0bb285b1d6e5816e
      https://github.com/llvm/llvm-project/commit/761bbed264f7f524fbf0e57d0bb285b1d6e5816e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-02-20 (Sat, 20 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/psubus.ll

  Log Message:
  -----------
  [DAG] foldSubToUSubSat - fold sub(a,trunc(umin(zext(a),b))) -> usubsat(a,trunc(umin(b,SatLimit)))

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

Completes PR40111

Differential Revision: https://reviews.llvm.org/D96703




More information about the All-commits mailing list