std::sort will compare an element to itself in some cases. We should not crash if this happens.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D75000
[IndVars] Fix sort comparator. ClosedPublic Authored by efriedma on Feb 21 2020, 4:06 PM.
Details
Summary std::sort will compare an element to itself in some cases. We should not crash if this happens.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 25 2020, 9:16 AM Closed by commit rGb29992645367: [IndVars] Fix sort comparator. (authored by efriedma). · Explain WhyFeb 27 2020, 5:32 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 247145 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/test/Transforms/IndVarSimplify/eliminate-exit.ll
|