[all-commits] [llvm/llvm-project] 9a96f4: [InstCombine] add tests for mul with shl; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Oct 31 06:07:10 PDT 2022


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

  Changed paths:
    M llvm/test/Transforms/InstCombine/mul.ll

  Log Message:
  -----------
  [InstCombine] add tests for mul with shl; NFC


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/mul.ll

  Log Message:
  -----------
  [InstCombine] fold mul with decremented "shl -1" factor

This is a sibling to:
6064e92b0a84
...but we canonicalize the shl+add to shl+xor,
so the pattern is different than I expected:
https://alive2.llvm.org/ce/z/8CX16e

I have not found any patterns that are safe
to propagate no-wrap, so that is not included
here.


Compare: https://github.com/llvm/llvm-project/compare/5d67b051e29c...bc886e9b587b


More information about the All-commits mailing list