[all-commits] [llvm/llvm-project] 0e9cb9: ValueTracking: Teach computeKnownFPClass to look a...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Mar 2 03:04:51 PST 2026


  Branch: refs/heads/users/arsenm/valuetracking/computeKnownFPClass-bitcast-integer-min-max
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e9cb93475d6637a4b1fab77e5249b5aa841e8ab
      https://github.com/llvm/llvm-project/commit/0e9cb93475d6637a4b1fab77e5249b5aa841e8ab
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    A llvm/test/Transforms/Attributor/nofpclass-bitcast.ll

  Log Message:
  -----------
  ValueTracking: Teach computeKnownFPClass to look at bitcast + integer max

The returned class will still be one of the bitpatterns.

This pattern is used in rocm device libraries in assorted functions, e.g.,
https://github.com/ROCm/llvm-project/blob/amd-staging/amd/device-libs/ocml/src/rlen3F.cl#L20

I believe it is blocking the eliminationg of finite checks in some of the more
complex functions.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list