[all-commits] [llvm/llvm-project] 34cca2: [InstCombine] add tests for div with common factor...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Oct 6 08:45:07 PDT 2022


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

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

  Log Message:
  -----------
  [InstCombine] add tests for div with common factor; NFC


  Commit: 6b869be8100d6c1b93bdaff1dc96a80a903c8fc7
      https://github.com/llvm/llvm-project/commit/6b869be8100d6c1b93bdaff1dc96a80a903c8fc7
  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

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

(X * Y) u/ (X << Z) --> Y u>> Z

https://alive2.llvm.org/ce/z/4G9D_W


Compare: https://github.com/llvm/llvm-project/compare/08c4a6795ac4...6b869be8100d


More information about the All-commits mailing list