[all-commits] [llvm/llvm-project] b29992: [IndVars] Fix sort comparator.

Eli Friedman via All-commits all-commits at lists.llvm.org
Thu Feb 27 17:25:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b2999264536776aa3c09577290ebf21643bdc492
      https://github.com/llvm/llvm-project/commit/b2999264536776aa3c09577290ebf21643bdc492
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
    M llvm/test/Transforms/IndVarSimplify/eliminate-exit.ll

  Log Message:
  -----------
  [IndVars] Fix sort comparator.

std::sort will compare an element to itself in some cases.  We should
not crash if this happens.

Differential Revision: https://reviews.llvm.org/D75000




More information about the All-commits mailing list