[all-commits] [llvm/llvm-project] 6b3e5f: [SeparateConstOffsetFromGEP] Preserve inbounds fla...

Fabian Ritter via All-commits all-commits at lists.llvm.org
Tue Mar 18 06:10:43 PDT 2025


  Branch: refs/heads/users/ritter-x2a/03-10-_separateconstoffsetfromgep_preserve_inbounds_flag_based_on_valuetracking
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b3e5fa41cc2b5e55f468a2c328457b6dc621a3d
      https://github.com/llvm/llvm-project/commit/6b3e5fa41cc2b5e55f468a2c328457b6dc621a3d
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/preserve-inbounds.ll
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep-and-gvn.ll
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep.ll

  Log Message:
  -----------
  [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking

If we know that the initial GEP was inbounds, and we change it to a
sequence of GEPs from the same base pointer where every offset is
non-negative, then the new GEPs are inbounds.

For SWDEV-516125.


  Commit: 5d1a65bb240e02f961a63b9fdcbf6c568b6d57cb
      https://github.com/llvm/llvm-project/commit/5d1a65bb240e02f961a63b9fdcbf6c568b6d57cb
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/preserve-inbounds.ll

  Log Message:
  -----------
  Simplify test case and add more


Compare: https://github.com/llvm/llvm-project/compare/4ab790dd1f2c...5d1a65bb240e

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