We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1634f commit 7cd3047Copy full SHA for 7cd3047
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -406,15 +406,16 @@ static FunctionSummary *calculatePrevailingSummary(
406
}
407
408
409
+ auto &CPS = CachedPrevailingSummary[VI];
410
if (Local) {
411
assert(!Prevailing);
- CachedPrevailingSummary[VI] = Local;
412
+ CPS = Local;
413
} else if (Prevailing) {
414
assert(!Local);
- CachedPrevailingSummary[VI] = Prevailing;
415
+ CPS = Prevailing;
416
417
- return CachedPrevailingSummary[VI];
418
+ return CPS;
419
420
421
bool llvm::thinLTOPropagateFunctionAttrs(
0 commit comments