llvm/llvm-project

[DAG] computeKnownFPClass - add ISD::MAXNUM/MINNUM handling + test coverage

Open

#189,694 opened on Mar 31, 2026

View on GitHub
 (9 comments) (0 reactions) (1 assignee)C++ (10,782 forks)batch import
good first issuellvm:SelectionDAG

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (Avg merge 1d 2h) (1,000 merged PRs in 30d)

Description

ISD::FMAXIMUM/ISD::FMINIMUM + ISD::FMAXIMUMNUM/ISD::FMINIMUMNUM handling can be added as well

This will need to be based off the implementation in computeKnownFPClass in ValueTracking.cpp - DenormalMode access might take some additional patches / test coverage

This should be tested with IR tests and not unit tests

Contributor guide