HomePhabricator

[InstSimplify] fold fcmp (maxnum, X, C1), C2

Authored by spatel on May 19 2019, 7:26 AM.

Description

[InstSimplify] fold fcmp (maxnum, X, C1), C2

This is the sibling transform for rL360899 (D61691):

maxnum(X, GreaterC) == C --> false
maxnum(X, GreaterC) <= C --> false
maxnum(X, GreaterC) <  C --> false
maxnum(X, GreaterC) >= C --> true
maxnum(X, GreaterC) >  C --> true
maxnum(X, GreaterC) != C --> true

llvm-svn: 361118

Details

Committed
sidorovdMay 24 2019, 5:43 AM
Parents
rG08949dedaf15: Add a Visit overload for DynTypedNode to ASTNodeTraverser
Branches
Unknown
Tags
Unknown