[all-commits] [llvm/llvm-project] fa7915: [CVP] Add additional select tests (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jul 10 08:17:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa7915bb73a1174e3dc1b38fe83b77325da9097c
      https://github.com/llvm/llvm-project/commit/fa7915bb73a1174e3dc1b38fe83b77325da9097c
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M llvm/test/Transforms/CorrelatedValuePropagation/select.ll

  Log Message:
  -----------
  [CVP] Add additional select tests (NFC)

Add uses of the select outside the branch.


  Commit: 103f1ac406d835a3c758a82f4d83072dff9bd473
      https://github.com/llvm/llvm-project/commit/103f1ac406d835a3c758a82f4d83072dff9bd473
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
    M llvm/test/Transforms/CorrelatedValuePropagation/select.ll

  Log Message:
  -----------
  [CVP] Make select fold use-site specific (PR63756)

We may be able to replace the select with one of its select arms
at some but not all uses.

For uses in phi nodes this was already handled in the getValueOnEdge()
fold (which we can't drop entirely because it also handles an additional
case).

Fixes https://github.com/llvm/llvm-project/issues/63756.


Compare: https://github.com/llvm/llvm-project/compare/12d72e4fdee9...103f1ac406d8


More information about the All-commits mailing list