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

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ea447b4c4b007ea1c736f71e569fda621f4fdc8
      https://github.com/llvm/llvm-project/commit/8ea447b4c4b007ea1c736f71e569fda621f4fdc8
  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 (#165425)

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.



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