[llvm] r292043 - Give comparator const call operator
Eric Fiselier via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 14 18:06:45 PST 2017
Author: ericwf
Date: Sat Jan 14 20:06:44 2017
New Revision: 292043
URL: http://llvm.org/viewvc/llvm-project?rev=292043&view=rev
Log:
Give comparator const call operator
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=292043&r1=292042&r2=292043&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Sat Jan 14 20:06:44 2017
@@ -3264,7 +3264,7 @@ void BoUpSLP::scheduleBlock(BlockSchedul
// sorted by the original instruction location. This lets the final schedule
// be as close as possible to the original instruction order.
struct ScheduleDataCompare {
- bool operator()(ScheduleData *SD1, ScheduleData *SD2) {
+ bool operator()(ScheduleData *SD1, ScheduleData *SD2) const {
return SD2->SchedulingPriority < SD1->SchedulingPriority;
}
};
More information about the llvm-commits
mailing list