[all-commits] [llvm/llvm-project] 746e63: [InstSimplify] add tests for 'or' logic folds; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Tue Nov 30 09:57:10 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 746e632dafbec2277c62164b3e63da4bee1d8553
      https://github.com/llvm/llvm-project/commit/746e632dafbec2277c62164b3e63da4bee1d8553
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/or.ll

  Log Message:
  -----------
  [InstSimplify] add tests for 'or' logic folds; NFC

The tests are adapted from the xor patterns used with:
892648b18a8c
b326c058146f


  Commit: 1fdb0f6ffdffdb67ab9169aab39f0429eaae3a98
      https://github.com/llvm/llvm-project/commit/1fdb0f6ffdffdb67ab9169aab39f0429eaae3a98
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/or.ll

  Log Message:
  -----------
  [InstSimplify] add tests for 'or' with logic ops; NFC

The code for these transforms can be refactored,
but the existing tests are incomplete.


  Commit: 8dec0b23da116e1cf0cd49c955ff1fadf52d5096
      https://github.com/llvm/llvm-project/commit/8dec0b23da116e1cf0cd49c955ff1fadf52d5096
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

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

  Log Message:
  -----------
  [InstSimplify] refactor 'or' logic folds; NFC

Reduce duplication for handling the top-level commuted operands.
There are several other folds that should be moved in here, but
we need to make sure there's good test coverage.


  Commit: 33f8c1168f39c49091d644146ef49d9567cfa984
      https://github.com/llvm/llvm-project/commit/33f8c1168f39c49091d644146ef49d9567cfa984
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M llvm/test/Transforms/InstSimplify/AndOrXor.ll

  Log Message:
  -----------
  [InstSimplify] adjust tests for 'or' of logic ops; NFC

Half of the tests had an extra instruction so were not testing the minimal patterns.


  Commit: 7a7c059d867554e116244ad5639d05d75ed1a7cd
      https://github.com/llvm/llvm-project/commit/7a7c059d867554e116244ad5639d05d75ed1a7cd
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

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

  Log Message:
  -----------
  [InstSimplify] reduce code duplication for 'or' logic fold; NFC


Compare: https://github.com/llvm/llvm-project/compare/fc57cfad3c1e...7a7c059d8675


More information about the All-commits mailing list