[all-commits] [llvm/llvm-project] 293652: [SDAG][AMDGPU] Allow opting in to OOB-generating P...

Fabian Ritter via All-commits all-commits at lists.llvm.org
Fri Jul 18 01:10:16 PDT 2025


  Branch: refs/heads/users/ritter-x2a/06-26-_sdag_amdgpu_allow_opting_in_to_oob-generating_ptradd_transforms
  Home:   https://github.com/llvm/llvm-project
  Commit: 293652f82cf41da5df1ad9df53df7a5d562dbd09
      https://github.com/llvm/llvm-project/commit/293652f82cf41da5df1ad9df53df7a5d562dbd09
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.h

  Log Message:
  -----------
  [SDAG][AMDGPU] Allow opting in to OOB-generating PTRADD transforms

This PR adds a TargetLowering hook, canTransformPtrArithOutOfBounds,
that targets can use to allow transformations to introduce out-of-bounds
pointer arithmetic. It also moves two such transformations from the
AMDGPU-specific DAG combines to the generic DAGCombiner.

This is motivated by target features like AArch64's checked pointer
arithmetic, CPA, which does not tolerate the introduction of
out-of-bounds pointer arithmetic.



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