[all-commits] [llvm/llvm-project] 6545f2: [IR] Truncate struct field offsets exceeding the p...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Aug 1 11:09:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6545f29f64373d98ab093b059a00f3272efb59bc
      https://github.com/llvm/llvm-project/commit/6545f29f64373d98ab093b059a00f3272efb59bc
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-08-01 (Sat, 01 Aug 2026)

  Changed paths:
    M llvm/lib/IR/Operator.cpp
    A llvm/test/Transforms/ConstraintElimination/gep-struct-offset-index-width.ll
    A llvm/test/Transforms/InstCombine/gep-struct-offset-index-width.ll

  Log Message:
  -----------
  [IR] Truncate struct field offsets exceeding the pointer index width. (#213436)

Update accumulateConstantOffset and collectOffset to implicitly truncate
struct field offsets. This fixes crashes in the new tests, where the
field offset does not fit in the index width.

PR: https://github.com/llvm/llvm-project/pull/213436



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