Skip to content
Commit 17ee5ac2 authored by Stepan Dyatkovskiy's avatar Stepan Dyatkovskiy
Browse files

MergeFunctions Pass, introduced total ordering among top-level comparison

methods.
    
Patch changes return type of FunctionComparator::compare() and
FunctionComparator::compare(const BasicBlock*, const BasicBlock*)
methods from bool (equal or not) to {-1, 0, 1} (less, equal, great).
    
This patch belongs to patch series that improves MergeFunctions
performance time from O(N*N) to O(N*log(N)).

llvm-svn: 211437
parent 0bf086f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment