This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Reduce minnum/maxnum if inputs are casted
ClosedPublic

Authored by arsenm on Jan 23 2017, 4:25 PM.

Details

Reviewers
majnemer
Summary

This is already done for the libcall. Also canonicalize constants to RHS.

Diff Detail

Event Timeline

arsenm created this revision.Jan 23 2017, 4:25 PM
arsenm edited the summary of this revision. (Show Details)Jan 23 2017, 4:25 PM
majnemer accepted this revision.Jan 23 2017, 5:42 PM
majnemer added a subscriber: majnemer.

LGTM

This revision is now accepted and ready to land.Jan 23 2017, 5:42 PM