[all-commits] [llvm/llvm-project] 531430: [InstCombine] Relax one-use check for min/max(fpex...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Feb 9 00:34:40 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 531430b614cf8a5122335168abbc54096b5225a2
      https://github.com/llvm/llvm-project/commit/531430b614cf8a5122335168abbc54096b5225a2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-02-09 (Mon, 09 Feb 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/maxnum.ll
    M llvm/test/Transforms/InstCombine/minnum.ll

  Log Message:
  -----------
  [InstCombine] Relax one-use check for min/max(fpext x, fpext y) to fpext(min/max(x, y)) fold (#180164)

If only of the operands is one-use, the total number of fpexts stays the
same, but the min/max is performed on a narrowed type. Additionally, the
fpext may fold with a following fptrunc.



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