There are SelectPatternFlavors that don't represent min or max idioms,
and we should not be passing those to getCmpPredicateForMinMax.
Fixes PR25745.
Paths
| Differential D15249
[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, Fixes PR25745.
Diff Detail
Event TimelineClosed by commit rL254869: [InstCombine] Call getCmpPredicateForMinMax only with a valid SPF (authored by sanjoy). · Explain WhyDec 5 2015, 3:47 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 41998 llvm/trunk/include/llvm/Analysis/ValueTracking.h
llvm/trunk/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/trunk/test/Transforms/InstCombine/pr25745.ll
|