[all-commits] [llvm/llvm-project] 9aee07: [InstCombine] X - usub.sat(X, Y) => umin(X, Y)

Dávid Bolvanský via All-commits all-commits at lists.llvm.org
Fri Apr 23 12:13:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9aee07abd0cacc960bb06870ce3eedd20545b28b
      https://github.com/llvm/llvm-project/commit/9aee07abd0cacc960bb06870ce3eedd20545b28b
  Author: Dávid Bolvanský <david.bolvansky at gmail.com>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/saturating-add-sub.ll

  Log Message:
  -----------
  [InstCombine] X - usub.sat(X, Y) => umin(X, Y)

Pattern regressed in LLVM 9 with the introduction of usub.sat.

Fixes https://bugs.llvm.org/show_bug.cgi?id=42178#c2

Reviewed By: nikic

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




More information about the All-commits mailing list