[all-commits] [llvm/llvm-project] 87f788: [NaryReassociate] Fix divide by zero crash in Nary...

t-demchuk via All-commits all-commits at lists.llvm.org
Thu Jun 25 06:07:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87f7884cb69912ca812d3a0543c94e0362d395a9
      https://github.com/llvm/llvm-project/commit/87f7884cb69912ca812d3a0543c94e0362d395a9
  Author: t-demchuk <109612249+t-demchuk at users.noreply.github.com>
  Date:   2026-06-25 (Thu, 25 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/NaryReassociate.cpp
    A llvm/test/Transforms/NaryReassociate/nary-gep-zero-sized-element.ll

  Log Message:
  -----------
  [NaryReassociate] Fix divide by zero crash in NaryReassociatePass (#202377)

Updates NaryReassociatePass with a safety check to guard against GEPs
into arrays with zero sized element types (eg. [0 x ptr]) to prevent
division by zero.



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