[all-commits] [llvm/llvm-project] 7b5449: [Hexagon] Add lowering for `{max, min}num` (#202938)

Nicolas Miller via All-commits all-commits at lists.llvm.org
Tue Jul 14 09:30:41 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b54498f07642eb8f243664079211528d6a3b0a6
      https://github.com/llvm/llvm-project/commit/7b54498f07642eb8f243664079211528d6a3b0a6
  Author: Nicolas Miller <nicolas.pierre.miller at gmail.com>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
    M llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
    M llvm/lib/Target/Hexagon/HexagonPatterns.td
    M llvm/lib/Target/Hexagon/HexagonPatternsHVX.td
    M llvm/test/CodeGen/Hexagon/fminmax-v67.ll
    M llvm/test/CodeGen/Hexagon/fminmax.ll

  Log Message:
  -----------
  [Hexagon] Add lowering for `{max,min}num` (#202938)

Since the floating point requirements for `{max,min}num` are less strict
than the ones for `{max,min}imumnum`, it is fine to lower them to the
same instructions that already meet the requirements for the latter.
This is similar to what the RISC-V backend does for example.

This is also a lot better than generating a standard library call.



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