[all-commits] [llvm/llvm-project] 096f1c: [InstSimplify] remove redundant predicate check; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Sep 26 12:07:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 096f1c4db4e314b2c1d14d00bf8dd694ce561b7d
      https://github.com/llvm/llvm-project/commit/096f1c4db4e314b2c1d14d00bf8dd694ce561b7d
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] remove redundant predicate check; NFC

It's still possible that there's a simpler way to specify
the conditions needed for this set of folds, but "getStrictPred"
converts >= to > for example, so there's no need to explicitly
check that.


  Commit: e9e994838aa07506e63cc06d86173d0efe00c48a
      https://github.com/llvm/llvm-project/commit/e9e994838aa07506e63cc06d86173d0efe00c48a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] rearrange matching for select-of-min/max folds; NFC

This makes the code a little shorter and should be easier to extend
for a pattern like in issue #42100.


Compare: https://github.com/llvm/llvm-project/compare/1c6826e8fc6d...e9e994838aa0


More information about the All-commits mailing list