[PATCH] D75000: [IndVars] Fix sort comparator.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 16:11:51 PST 2020
efriedma created this revision.
efriedma added a reviewer: reames.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
std::sort will compare an element to itself in some cases. We should not crash if this happens.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75000
Files:
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/test/Transforms/IndVarSimplify/eliminate-exit.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75000.246033.patch
Type: text/x-patch
Size: 7901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200222/d7ceb31e/attachment-0001.bin>
More information about the llvm-commits
mailing list