Issue perf. warning if SOA width narrower than gang size is used.
This commit is contained in:
5
decl.cpp
5
decl.cpp
@@ -171,6 +171,11 @@ DeclSpecs::GetBaseType(SourcePos pos) const {
|
||||
}
|
||||
else
|
||||
retType = st->GetAsSOAType(soaWidth);
|
||||
|
||||
if (soaWidth < g->target.vectorWidth)
|
||||
PerformanceWarning(pos, "soa<%d> width smaller than gang size %d "
|
||||
"currently leads to inefficient code to access "
|
||||
"soa types.", soaWidth, g->target.vectorWidth);
|
||||
}
|
||||
|
||||
return retType;
|
||||
|
||||
Reference in New Issue
Block a user