[all-commits] [llvm/llvm-project] fd81bd: [ConstantFolding] Avoid use of isNonIntegralPointe...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Tue Sep 23 15:29:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd81bd8b3effe65276b301eb7285cc558fc16db4
      https://github.com/llvm/llvm-project/commit/fd81bd8b3effe65276b301eb7285cc558fc16db4
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2025-09-23 (Tue, 23 Sep 2025)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    R llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-index-width.ll
    A llvm/test/Transforms/InstSimplify/ConstProp/inttoptr-gep-nonintegral.ll

  Log Message:
  -----------
  [ConstantFolding] Avoid use of isNonIntegralPointerType()

Avoiding any new inttoptr is unnecessarily restrictive for "plain"
non-integral pointers, but it is important for unstable pointers and
pointers with external state. Fixes another test codegen regression
from https://github.com/llvm/llvm-project/pull/105735.

Reviewed By: nikic

Pull Request: https://github.com/llvm/llvm-project/pull/159959



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