[all-commits] [llvm/llvm-project] 4b5261: [InstCombine] Add tests for sub of umin intrinsic ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Feb 23 03:00:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b5261e10f752e682a3e7ade385e927c2e7ee1d3
      https://github.com/llvm/llvm-project/commit/4b5261e10f752e682a3e7ade385e927c2e7ee1d3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/sub-minmax.ll

  Log Message:
  -----------
  [InstCombine] Add tests for sub of umin intrinsic (NFC)

We should be converting these into usub.sat.


  Commit: e2f627e5e3855309f3a7421f6786b401efb6b7c7
      https://github.com/llvm/llvm-project/commit/e2f627e5e3855309f3a7421f6786b401efb6b7c7
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

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

  Log Message:
  -----------
  [InstCombine] Fold sub of umin to usub.sat

We were handling sub of umax, but not the conjugated umin case.

https://alive2.llvm.org/ce/z/4fdZfy
https://alive2.llvm.org/ce/z/BhUQBM


Compare: https://github.com/llvm/llvm-project/compare/152325d2f3b6...e2f627e5e385


More information about the All-commits mailing list