[all-commits] [llvm/llvm-project] 241893: [PhaseOrdering] add test for mul + sdiv; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Oct 6 10:14:11 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 241893f99fd2cfe2fb7e34dfbe34f24af81532b5
      https://github.com/llvm/llvm-project/commit/241893f99fd2cfe2fb7e34dfbe34f24af81532b5
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M llvm/test/Transforms/PhaseOrdering/reassociate-instcombine.ll

  Log Message:
  -----------
  [PhaseOrdering] add test for mul + sdiv; NFC

issue #58137


  Commit: 8da2fa856f1b7ddd079e7b0637082f1413d97ea2
      https://github.com/llvm/llvm-project/commit/8da2fa856f1b7ddd079e7b0637082f1413d97ea2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

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

  Log Message:
  -----------
  [InstCombine] fold sdiv with hidden common factor

(X * Y) s/ (X << Z) --> Y s/ (1 << Z)

https://alive2.llvm.org/ce/z/yRSddG

issue #58137


Compare: https://github.com/llvm/llvm-project/compare/8d9a3a6b9bd1...8da2fa856f1b


More information about the All-commits mailing list