[all-commits] [llvm/llvm-project] fdc6c0: [SDAG] Set InBounds when when computing offsets in...

Fabian Ritter via All-commits all-commits at lists.llvm.org
Fri Oct 31 02:28:16 PDT 2025


  Branch: refs/heads/users/ritter-x2a/10-27-_sdag_set_inbounds_when_when_computing_offsets_into_memory_objects
  Home:   https://github.com/llvm/llvm-project
  Commit: fdc6c00f08a1ce35a389be8c71b173d081bbd724
      https://github.com/llvm/llvm-project/commit/fdc6c00f08a1ce35a389be8c71b173d081bbd724
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-10-31 (Fri, 31 Oct 2025)

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

  Log Message:
  -----------
  [SDAG] Set InBounds when when computing offsets into memory objects

When a load or store accesses N bytes starting from a pointer P, and we want to
compute an offset pointer within these N bytes after P, we know that the
arithmetic to add the offset must be inbounds. This is for example relevant
when legalizing too-wide memory accesses, when lowering memcpy&Co., or when
optimizing "vector-load -> extractelement" into an offset load.

For SWDEV-516125.


  Commit: eeb0092ac56819213499ca42dd9b9ffa0d1c90ac
      https://github.com/llvm/llvm-project/commit/eeb0092ac56819213499ca42dd9b9ffa0d1c90ac
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-10-31 (Fri, 31 Oct 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

  Log Message:
  -----------
  Turn the getInboundsVectorElementPointer declaration into an inline definition.


Compare: https://github.com/llvm/llvm-project/compare/61fae42fb8a2...eeb0092ac568

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