[all-commits] [llvm/llvm-project] 2e9bc1: [LVI] Use !range metadata for supported intrinsics

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jan 26 06:11:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e9bc1b8614c9422573cf2f4728525787b0cb0cb
      https://github.com/llvm/llvm-project/commit/2e9bc1b8614c9422573cf2f4728525787b0cb0cb
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

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

  Log Message:
  -----------
  [LVI] Use !range metadata for supported intrinsics

Even if the intrinsic is supported by ConstantRange, we should
still make use of !range metadata. This doesn't matter much now,
but is important if we want to support ctlz style intrinsics,
which always have KnownBits-based !range metadata attached, which
might be better than what we can compute using ranges.




More information about the All-commits mailing list