[all-commits] [llvm/llvm-project] 4c1dc6: [InstCombine] add/adjust tests for multiply with e...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Jan 20 12:57:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c1dc65015ae8ba4b7e0ac56f4d88d29e712ce25
      https://github.com/llvm/llvm-project/commit/4c1dc65015ae8ba4b7e0ac56f4d88d29e712ce25
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

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

  Log Message:
  -----------
  [InstCombine] add/adjust tests for multiply with extended bool; NFC


  Commit: a7a2860d0eee37d9e0fd0b6a8e3d884f8ee4ec16
      https://github.com/llvm/llvm-project/commit/a7a2860d0eee37d9e0fd0b6a8e3d884f8ee4ec16
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

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

  Log Message:
  -----------
  [InstCombine] convert mul with sexted bool and constant to select

We already have the related folds for zext-of-bool, so it
should make things more consistent to have this transform
to select for sext-of-bool too:
https://alive2.llvm.org/ce/z/YikdfA

Fixes #53319


Compare: https://github.com/llvm/llvm-project/compare/dd7b69a61fa3...a7a2860d0eee


More information about the All-commits mailing list