Skip to content

Commit

Permalink
SLPVectorizer: Use properlyDominates to satisfy the irreflexivity of …
Browse files Browse the repository at this point in the history
…a strict weak ordering.

STL debug mode checks this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194015 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Nov 4, 2013
1 parent 896a885 commit 63d8f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,7 @@ class DTCmp {
public:
DTCmp(const DominatorTree *DT) : DT(DT) {}
bool operator()(const BasicBlock *A, const BasicBlock *B) const {
return DT->dominates(A, B);
return DT->properlyDominates(A, B);
}
};

Expand Down

0 comments on commit 63d8f88

Please sign in to comment.