[all-commits] [llvm/llvm-project] 22dba7: [AC] Handle (X+C1)<C2 assumes (PR48408)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Dec 13 12:00:59 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22dba707b0fbf778466baef718cc536700b99df3
      https://github.com/llvm/llvm-project/commit/22dba707b0fbf778466baef718cc536700b99df3
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-12-13 (Sun, 13 Dec 2020)

  Changed paths:
    M llvm/lib/Analysis/AssumptionCache.cpp
    M llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll

  Log Message:
  -----------
  [AC] Handle (X+C1)<C2 assumes (PR48408)

InstCombine canonicalizes X>C && X<C' style comparisons into
(X+C1)<C2. This type of expression is recognized by some analyses
like LVI, but currently not when used inside assumptions, because
AssumptionCache does not track affected values for it.




More information about the All-commits mailing list