HomePhabricator

[InstSimplify] allow folds for fmin/fmax with 'ninf'

Authored by spatel on Sep 14 2020, 8:13 AM.

Description

[InstSimplify] allow folds for fmin/fmax with 'ninf'

maxnum(ninf X, +FLT_MAX) --> +FLT_MAX
minnum(ninf X, -FLT_MAX) --> -FLT_MAX

This is based on the similar codegen transform proposed in:
D87571

Details

Committed
spatelSep 14 2020, 8:18 AM
Parents
rGc4f1b3144184: [MemorySSA] Make sure PerformedPhiTrans is updated for each visited def.
Branches
Unknown
Tags
Unknown