[all-commits] [llvm/llvm-project] 402dfa: [ValueTracking] Support vscale in computeConstantR...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 17 02:05:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 402dfa389e136c75ac7f341ea85ff4c854aa0e93
      https://github.com/llvm/llvm-project/commit/402dfa389e136c75ac7f341ea85ff4c854aa0e93
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstCombine/icmp-vscale.ll

  Log Message:
  -----------
  [ValueTracking] Support vscale in computeConstantRange()

Add support for vscale in computeConstantRange(), based on
vscale_range attributes. This allows simplifying based on the
precise range, rather than a KnownBits approximation (which will
be off by a factor of two for the usual case of a power of two
upper bound).

Differential Revision: https://reviews.llvm.org/D146217




More information about the All-commits mailing list