File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -229,11 +229,11 @@ class MachineBasicBlock
229229 // / is only computed once and is cached.
230230 mutable MCSymbol *CachedMCSymbol = nullptr ;
231231
232- // / Contains the subblock indices in this block that are targets of code prefetching.
233- // / The subblock indexed `i` specifies that region after the `i`th call (or the
234- // / beginning of the block if `i==0`) to before the`i+1`th callsite (or the
235- // / end of the block). The prefetch target is always the beginning of the
236- // / subblock.
232+ // / Contains the subblock indices in this block that are targets of code
233+ // / prefetching. The subblock indexed `i` specifies that region after the
234+ // / `i`th call (or the beginning of the block if `i==0`) to before the`i+1`th
235+ // / callsite (or the end of the block). The prefetch target is always the
236+ // / beginning of the subblock.
237237 SmallVector<unsigned > PrefetchTargetSubblockIndexes;
238238
239239 // / Cached MCSymbol for this block (used if IsEHContTarget).
Original file line number Diff line number Diff line change @@ -1986,14 +1986,17 @@ void AsmPrinter::emitFunctionBody() {
19861986 emitBasicBlockStart (MBB);
19871987 DenseMap<StringRef, unsigned > MnemonicCounts;
19881988
1989- SmallVector<unsigned > PrefetchTargets = MBB.getPrefetchTargetSubblockIndexes ();
1989+ SmallVector<unsigned > PrefetchTargets =
1990+ MBB.getPrefetchTargetSubblockIndexes ();
19901991 auto PrefetchTargetIt = PrefetchTargets.begin ();
19911992 unsigned NumCalls = 0 ;
19921993 // Helper to emit a symbol for the prefetch target and proceed to the next
19931994 // one.
19941995 auto EmitPrefetchTargetSymbolIfNeeded = [&]() {
1995- if (PrefetchTargetIt == PrefetchTargets.end ()) return ;
1996- if (NumCalls < *PrefetchTargetIt) return ;
1996+ if (PrefetchTargetIt == PrefetchTargets.end ())
1997+ return ;
1998+ if (NumCalls < *PrefetchTargetIt)
1999+ return ;
19972000 MCSymbol *PrefetchTargetSymbol = OutContext.getOrCreateSymbol (
19982001 Twine (" __llvm_prefetch_target_" ) + MF->getName () + Twine (" _" ) +
19992002 utostr (MBB.getBBID ()->BaseID ) + Twine (" _" ) +
You can’t perform that action at this time.
0 commit comments