[PATCH] D38586: SLPVectorizer.cpp: Avoid std::stable_sort() due to asymmetric comparator

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 15:01:12 PDT 2017


dberlin added a comment.

We sort siblings by RPO in newgvn. If you want to guarantee parent before child, however, just sort by the dominator tree dfs in and out numbers.


Repository:
  rL LLVM

https://reviews.llvm.org/D38586





More information about the llvm-commits mailing list