[all-commits] [llvm/llvm-project] 2824a6: [InstCombine] Add tests for udiv->lshr fold with m...

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


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

  Changed paths:
    M llvm/test/Transforms/InstCombine/div-shift.ll

  Log Message:
  -----------
  [InstCombine] Add tests for udiv->lshr fold with min/max intrinsics (NFC)


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/div-shift.ll

  Log Message:
  -----------
  [InstCombine] Support min/max intrinsics in udiv->lshr fold

This complements the existing fold for selects. This fold is a bit
more conservative, requiring one-use. The other folds here should
probably also be subjected to a one-use restriction.

https://alive2.llvm.org/ce/z/Q9eCDU
https://alive2.llvm.org/ce/z/8YK2CJ


Compare: https://github.com/llvm/llvm-project/compare/eb1c5a9862b6...587c7ff15c26


More information about the All-commits mailing list