[all-commits] [llvm/llvm-project] 2c59a9: [SeparateConstOffsetFromGEP] Rebuild GEP indices a...

Kevin McAfee via All-commits all-commits at lists.llvm.org
Wed Sep 16 16:14:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c59a938b358dc5b518e50424423f4a6eff2e8d7
      https://github.com/llvm/llvm-project/commit/2c59a938b358dc5b518e50424423f4a6eff2e8d7
  Author: Kevin McAfee <kmcafee at nvidia.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/divergence-structurizer.ll
    M llvm/test/CodeGen/AMDGPU/asyncmark-gfx12plus.ll
    M llvm/test/CodeGen/AMDGPU/loop-prefetch-data.ll
    M llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
    M llvm/test/CodeGen/AMDGPU/memmove-var-size.ll
    M llvm/test/CodeGen/AMDGPU/sgpr-control-flow.ll
    M llvm/test/CodeGen/AMDGPU/while-break.ll
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/xor-decompose.ll
    A llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/index-insertion-point.ll
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep.ll
    A llvm/test/Transforms/SeparateConstOffsetFromGEP/index-insertion-point-terminator-def.ll
    M llvm/test/Transforms/SeparateConstOffsetFromGEP/pr45371-find-either-reset.ll

  Log Message:
  -----------
  [SeparateConstOffsetFromGEP] Rebuild GEP indices at their definition point (#223546)

When a constant offset is split out of a GEP index, the rebuilt index
replaces the original one. Rebuilding the index immediately before the
GEP amounts to sinking the index computation, increasing live ranges and
register pressure. This change attempts to rebuild the index at the
definition point of the original index instead. The same insertion point
is used for the `idxprom` cast created by
`canonicalizeArrayIndicesToIndexSize` too.



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