[all-commits] [llvm/llvm-project] c2ab7e: [InstCombine] simplify code for matching shift-log...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Wed Jan 18 05:13:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2ab7e2abd834d4ef7b0f27709d9f7fce3140eb3
      https://github.com/llvm/llvm-project/commit/c2ab7e2abd834d4ef7b0f27709d9f7fce3140eb3
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

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

  Log Message:
  -----------
  [InstCombine] simplify code for matching shift-logic-shift pattern; NFC

We can match and capture in one statement. Also, make the
code more closely resemble the description comment by using
the constant name of an operand value.


  Commit: f81151edbfa3d65acb9f84d6ef214da60495556a
      https://github.com/llvm/llvm-project/commit/f81151edbfa3d65acb9f84d6ef214da60495556a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

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

  Log Message:
  -----------
  [InstCombine] add tests for diff-of-squares; NFC

Ideally, these negative tests would have been added
before 68c197f07eea to make sure the specific
operand matching is working as expected, but I did
not remember to include them.


Compare: https://github.com/llvm/llvm-project/compare/0aaeb25525ec...f81151edbfa3


More information about the All-commits mailing list