[all-commits] [llvm/llvm-project] 385fe3: [InstCombine] Strip trailing zero GEP indices (#15...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jul 30 08:55:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 385fe30ee0e4fc798f25b31dd8c6fd5e1f4081d1
      https://github.com/llvm/llvm-project/commit/385fe30ee0e4fc798f25b31dd8c6fd5e1f4081d1
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/load-cmp.ll
    M llvm/test/Transforms/InstCombine/strcmp-3.ll
    M llvm/test/Transforms/InstCombine/vector_gep1-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/vector_gep1.ll
    M llvm/test/Transforms/InstCombine/vectorgep-crash.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-interleaved-accesses.ll
    M llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll
    M llvm/test/Transforms/LoopVectorize/interleaved-accesses-pred-stores.ll
    M llvm/test/Transforms/LoopVectorize/interleaved-accesses.ll

  Log Message:
  -----------
  [InstCombine] Strip trailing zero GEP indices (#151338)

Zero indices at the end do not change the GEP offset and can be removed.

(Doing the same at the start requires adjusting the source element
type.)



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