llvm::compareVectors

Return true if BB1 and BB2 contain the same elements ignoring order.

Synopsis

Declared in <llvm/Support/GenericLoopInfoImpl.h>

template<typename T>
bool
compareVectors(
    std::vector<T>& BB1,
    std::vector<T>& BB2);

Description

Both vectors are sorted in place before comparison.

Return Value

True if the sorted vectors are equal.

Parameters

NameDescription
BB1First vector (sorted in place).
BB2Second vector (sorted in place).