HomePhabricator

[InstSimplify] add folds for fmin/fmax with 'nnan'

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

Description

[InstSimplify] add folds for fmin/fmax with 'nnan'

maximum(nnan X, +INF) --> +INF
minimum(nnan X, -INF) --> -INF

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

Details

Committed
spatelSep 14 2020, 8:46 AM
Parents
rG916b43403588: Sema: add support for `__attribute__((__swift_objc_members__))`
Branches
Unknown
Tags
Unknown