[all-commits] [llvm/llvm-project] 868946: [InstCombine] make pattern matching more consisten...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Jun 2 13:02:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8689463bfb013af5c0e6d01b80f4582f7d269a08
      https://github.com/llvm/llvm-project/commit/8689463bfb013af5c0e6d01b80f4582f7d269a08
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

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

  Log Message:
  -----------
  [InstCombine] make pattern matching more consistent; NFC

We could go either way on this and several similar matches.
Just matching as a binop is possibly slightly more efficient;
we don't need to re-confirm the opcode of the instruction.


  Commit: 1882c25f124647ba5b5d798dc00c4cd9308536bf
      https://github.com/llvm/llvm-project/commit/1882c25f124647ba5b5d798dc00c4cd9308536bf
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

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

  Log Message:
  -----------
  [InstCombine] add tests for mul with low-bit mask operand; NFC


Compare: https://github.com/llvm/llvm-project/compare/986e5dedf2e0...1882c25f1246


More information about the All-commits mailing list