[all-commits] [llvm/llvm-project] 075134: [InstCombine] add tests for min/max with nots and ...

RotateRight via All-commits all-commits at lists.llvm.org
Sat Aug 21 09:17:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0751347bc36b7ba920102c5f8a33d4eb89c34343
      https://github.com/llvm/llvm-project/commit/0751347bc36b7ba920102c5f8a33d4eb89c34343
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-21 (Sat, 21 Aug 2021)

  Changed paths:
    M llvm/test/Transforms/InstCombine/minmax-intrinsics.ll

  Log Message:
  -----------
  [InstCombine] add tests for min/max with nots and sub; NFC


  Commit: c0844de7a2a4181b8a88b3eec06a9d7bdd51bae4
      https://github.com/llvm/llvm-project/commit/c0844de7a2a4181b8a88b3eec06a9d7bdd51bae4
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-21 (Sat, 21 Aug 2021)

  Changed paths:
    M llvm/test/Transforms/InstCombine/addsub-constant-folding.ll

  Log Message:
  -----------
  [InstCombine] add tests for add/sub/add combines; NFC


  Commit: 41af8f0ad5e85ed9065e70272acae6406186b970
      https://github.com/llvm/llvm-project/commit/41af8f0ad5e85ed9065e70272acae6406186b970
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-08-21 (Sat, 21 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/addsub-constant-folding.ll

  Log Message:
  -----------
  [InstCombine] combine constants by reassociating add/sub/add

This may overlap partially with the reassociate pass,
but it seems simple enough that we should try it here
in InstCombine to enable other folds.

This shows up as an opportunity and potential regression
if we improve a subtract fold with 'not' ops to be more
general.


Compare: https://github.com/llvm/llvm-project/compare/605489d59309...41af8f0ad5e8


More information about the All-commits mailing list