This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Call getCmpPredicateForMinMax only with a valid SPF
ClosedPublic

Authored by sanjoy on Dec 4 2015, 3:36 PM.

Details

Summary

There are SelectPatternFlavors that don't represent min or max idioms,
and we should not be passing those to getCmpPredicateForMinMax.

Fixes PR25745.

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy updated this revision to Diff 41955.Dec 4 2015, 3:36 PM
sanjoy retitled this revision from to [InstCombine] Call getCmpPredicateForMinMax only with a valid SPF.
sanjoy updated this object.
sanjoy added a reviewer: majnemer.
sanjoy added a subscriber: llvm-commits.
This revision was automatically updated to reflect the committed changes.