Optimizing these well are especially interesting for IRCE since it
"clamps" values by generating this sort of pattern through SCEV
expressions.
Depends on D9352.
Paths
| Differential D9353
[InstCombine] Add new rule for MIN(MAX(~A, ~B), ~C) et. al. ClosedPublic Authored by sanjoy on Apr 29 2015, 3:12 PM.
Details Summary Optimizing these well are especially interesting for IRCE since it Depends on D9352.
Diff Detail Event Timelinesanjoy updated this object.
This revision is now accepted and ready to land.Apr 29 2015, 9:24 PM Closed by commit rL236203: [InstCombine] Add new rule for MIN(MAX(~A, ~B), ~C) et. al. (authored by sanjoy). · Explain WhyApr 29 2015, 9:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 24678 lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/max-of-nots.ll
|
getInverseMinMaxSelectPattern would be more conforming to the coding standards.