[all-commits] [llvm/llvm-project] 271b5c: [InstCombine] Fix infinite combine loop (PR61361)

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Mar 14 08:43:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 271b5cf562fc6947598377d7c7ba76d9485e71e4
      https://github.com/llvm/llvm-project/commit/271b5cf562fc6947598377d7c7ba76d9485e71e4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select.ll

  Log Message:
  -----------
  [InstCombine] Fix infinite combine loop (PR61361)

In the degenerate case where the select is fed by an unsimplified
icmp with two constant operands, don't try to replace one constant
with another. Wait for the icmp to be simplified first instead.

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




More information about the All-commits mailing list