[all-commits] [llvm/llvm-project] 3f36bd: [PhaseOrdering] add test for sdiv with common fact...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Oct 10 05:21:35 PDT 2022


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

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

  Log Message:
  -----------
  [PhaseOrdering] add test for sdiv with common factor; NFC

issue #58137


  Commit: 6876004f339102c959cc0fd5b44e9664dd936146
      https://github.com/llvm/llvm-project/commit/6876004f339102c959cc0fd5b44e9664dd936146
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-10 (Mon, 10 Oct 2022)

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

  Log Message:
  -----------
  [InstCombine] add 'exact' to udiv test for more coverage; NFC


  Commit: 9cff4711ac72576014a08f0cc0c773fa7bcc5557
      https://github.com/llvm/llvm-project/commit/9cff4711ac72576014a08f0cc0c773fa7bcc5557
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-10 (Mon, 10 Oct 2022)

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

  Log Message:
  -----------
  [InstCombine] fold udiv with common factor

((X *nuw Y) >> Z) / X --> Y >> Z

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

This is similar to 6b869be8100d / 8da2fa856f1b, but I have
not found a signed equivalent, so it's just an unsigned
match for now.


Compare: https://github.com/llvm/llvm-project/compare/71b4bc185f61...9cff4711ac72


More information about the All-commits mailing list