[all-commits] [llvm/llvm-project] 896f34: [ConstantFolding] Use getGetElementPtr() overload ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Sep 24 03:51:28 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 896f344605665ad74f34521ecd11ef84c7617987
      https://github.com/llvm/llvm-project/commit/896f344605665ad74f34521ecd11ef84c7617987
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/test/Transforms/InstCombine/gep-custom-dl.ll
    M llvm/test/Transforms/InstCombine/gep-vector.ll
    M llvm/test/Transforms/InstCombine/vectorgep-crash.ll

  Log Message:
  -----------
  [ConstantFolding] Use getGetElementPtr() overload accepting DataLayout (#226104)

To directly create the constant GEP in canonical form. The practical
effect is that we a) canonicalize vector GEPs and b) decline to
create a GEP which can't be represented in ptradd form (in the
constant_fold_custom_dl test due to a non-canonical index 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