This is already done for the libcall. Also canonicalize constants to RHS.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D29060
InstCombine: Reduce minnum/maxnum if inputs are casted ClosedPublic Authored by arsenm on Jan 23 2017, 4:25 PM.
Details
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jan 23 2017, 5:42 PM arsenm added a parent revision: D28499: SimplifyLibCalls: Replace copysign calls with intrinsic.Jan 26 2017, 2:59 PM
Revision Contents
Diff 85487 lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/maxnum.ll
test/Transforms/InstCombine/minnum.ll
|