diff options
author | Hal Finkel <hfinkel@anl.gov> | 2016-10-24 05:07:18 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2016-10-24 05:07:18 +0000 |
commit | fd448408e31877c3ec602f374bf204652cf1439c (patch) | |
tree | fe610a64d7bf831f6ca162a907fd0ec940455a2e /llvm/tools/llvm-opt-report/OptReport.cpp | |
parent | 531ce2831193fae550826aec3fb5acdd73772f11 (diff) | |
download | bcm5719-llvm-fd448408e31877c3ec602f374bf204652cf1439c.tar.gz bcm5719-llvm-fd448408e31877c3ec602f374bf204652cf1439c.zip |
[llvm-opt-report] Fix unroll-count reporting
Fix the implementation of OptReportLocationInfo's operator < so that contexts
with different unroll counts are reported separately.
llvm-svn: 284957
Diffstat (limited to 'llvm/tools/llvm-opt-report/OptReport.cpp')
-rw-r--r-- | llvm/tools/llvm-opt-report/OptReport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-opt-report/OptReport.cpp b/llvm/tools/llvm-opt-report/OptReport.cpp index 0f0faa832bd..d067df5ecad 100644 --- a/llvm/tools/llvm-opt-report/OptReport.cpp +++ b/llvm/tools/llvm-opt-report/OptReport.cpp @@ -132,7 +132,7 @@ struct OptReportLocationInfo { return true; else if (InterleaveCount > RHS.InterleaveCount) return false; - else if (InterleaveCount < RHS.InterleaveCount) + else if (UnrollCount < RHS.UnrollCount) return true; return false; } |