[all-commits] [llvm/llvm-project] 09dc08: [InstCombine] Handle repeated users in foldOpIntoP...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Aug 1 02:07:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09dc08b707cf70897a7cb47efba19a14798561b3
      https://github.com/llvm/llvm-project/commit/09dc08b707cf70897a7cb47efba19a14798561b3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/phi.ll

  Log Message:
  -----------
  [InstCombine] Handle repeated users in foldOpIntoPhi()

If the phi is used multiple times in the same user, it will appear
multiple times in users(), in which case make_early_inc_range()
is insufficient to prevent iterator invalidation.

Fixes the issue reported at:
https://github.com/llvm/llvm-project/pull/151115#issuecomment-3141542852



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