[all-commits] [llvm/llvm-project] 906dea: [CVP] Add additional tests for clamp patterns (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Mar 6 01:42:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 906deaa0d9124387d4acb83b924c6b86f6d45219
      https://github.com/llvm/llvm-project/commit/906deaa0d9124387d4acb83b924c6b86f6d45219
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-06 (Sat, 06 Mar 2021)

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

  Log Message:
  -----------
  [CVP] Add additional tests for clamp patterns (NFC)

These are the same as the existing tests, but using different
predicates that are not handled by the current code.


  Commit: a917fb89dc2818dc329f099e6912e28967961cc9
      https://github.com/llvm/llvm-project/commit/a917fb89dc2818dc329f099e6912e28967961cc9
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-06 (Sat, 06 Mar 2021)

  Changed paths:
    M llvm/lib/Analysis/LazyValueInfo.cpp
    M llvm/test/Transforms/CorrelatedValuePropagation/basic.ll

  Log Message:
  -----------
  [LVI] Simplify and generalize handling of clamp patterns

Instead of handling a number of special cases for selects, handle
this generally when inferring ranges from conditions. We already
infer ranges from `x + C pred C2` to `x`, so doing the same for
`x pred C2` to `x + C` is straightforward.


Compare: https://github.com/llvm/llvm-project/compare/10a7289649cf...a917fb89dc28


More information about the All-commits mailing list