[all-commits] [llvm/llvm-project] 85ab77: [InstCombine] Fix infinite combine loop in evaluat...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jun 9 04:29:31 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85ab77340528a7d2e03595aa43c42fcb6105f650
      https://github.com/llvm/llvm-project/commit/85ab77340528a7d2e03595aa43c42fcb6105f650
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    A llvm/test/Transforms/InstCombine/issue173148-sext-phi-select-infloop.ll

  Log Message:
  -----------
  [InstCombine] Fix infinite combine loop in evaluateInDifferentType (#202572)

The implementation assumes that all original uses inside visited
instructions would get removed as part of changing the type. However,
this is not true for uses in select conditions, as only the value
operands change type in that case. Bail out if we encounter uses in
select conditions to avoid this.

Fixes https://github.com/llvm/llvm-project/issues/173148.



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