[all-commits] [llvm/llvm-project] 720a91: [SeparateConstOffsetFromGEP] Preserve inbounds fla...

Fabian Ritter via All-commits all-commits at lists.llvm.org
Wed Apr 23 03:39:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 720a91183b16f94876adaa831d0a49a04d31420a
      https://github.com/llvm/llvm-project/commit/720a91183b16f94876adaa831d0a49a04d31420a
  Author: Fabian Ritter <fabian.ritter at amd.com>
  Date:   2025-04-23 (Wed, 23 Apr 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 and NUW (#130617)

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.

We can also preserve inbounds if the inbounds GEP and the involved additions are NUW.

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