OSDN Git Service

SLPVectorizer.cpp: Avoid std::stable_sort(properlyDominates()).
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 21 Nov 2017 09:41:01 +0000 (09:41 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 21 Nov 2017 09:41:01 +0000 (09:41 +0000)
commit6132334604496a1327a83fb21367e311d9e5da59
tree3f305a518962ad5609bf7e56c26e6a28480a9589
parent9e63bd5c7126dd81853a0dbb0ea2f7ae5ca01155
SLPVectorizer.cpp: Avoid std::stable_sort(properlyDominates()).

properlyDominates() shouldn't be used as sort key. It causes different output between stdlibc++ and libc++.
Instead, I introduced RPOT. In most cases, it works for CSE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/visit-dominated.ll [new file with mode: 0644]