@@ -239,7 +239,7 @@ bool Compiler::fgEnsureFirstBBisScratch()
239239 noway_assert (fgLastBB != nullptr );
240240
241241 // Set the expected flags
242- block->SetFlags (BBF_INTERNAL | BBF_IMPORTED | BBF_NONE_QUIRK );
242+ block->SetFlags (BBF_INTERNAL | BBF_IMPORTED);
243243
244244 // This new first BB has an implicit ref, and no others.
245245 //
@@ -3503,7 +3503,6 @@ unsigned Compiler::fgMakeBasicBlocks(const BYTE* codeAddr, IL_OFFSET codeSize, F
35033503 // Jump to the next block
35043504 jmpKind = BBJ_ALWAYS;
35053505 jmpAddr = nxtBBoffs;
3506- bbFlags |= BBF_NONE_QUIRK;
35073506 }
35083507
35093508 assert (jmpKind != BBJ_COUNT);
@@ -4806,7 +4805,6 @@ BasicBlock* Compiler::fgSplitBlockAtEnd(BasicBlock* curr)
48064805 newBlock->TransferTarget (curr);
48074806
48084807 curr->SetKindAndTargetEdge (BBJ_ALWAYS, newEdge);
4809- curr->SetFlags (BBF_NONE_QUIRK);
48104808 assert (curr->JumpsToNext ());
48114809
48124810 return newBlock;
@@ -4898,7 +4896,6 @@ BasicBlock* Compiler::fgSplitBlockBeforeTree(
48984896
48994897 // prevBb should flow into block
49004898 assert (prevBb->KindIs (BBJ_ALWAYS) && prevBb->JumpsToNext () && prevBb->NextIs (block));
4901- prevBb->SetFlags (BBF_NONE_QUIRK);
49024899
49034900 return block;
49044901}
@@ -5031,9 +5028,7 @@ BasicBlock* Compiler::fgSplitEdge(BasicBlock* curr, BasicBlock* succ)
50315028 // an immediately following block of a BBJ_SWITCH (which has
50325029 // no fall-through path). For this case, simply insert a new
50335030 // fall-through block after 'curr'.
5034- // TODO-NoFallThrough: Once false target can diverge from bbNext, this will be unnecessary for BBJ_COND
50355031 newBlock = fgNewBBafter (BBJ_ALWAYS, curr, true /* extendRegion */ );
5036- newBlock->SetFlags (BBF_NONE_QUIRK);
50375032 }
50385033 else
50395034 {
@@ -5484,10 +5479,6 @@ BasicBlock* Compiler::fgConnectFallThrough(BasicBlock* bSrc, BasicBlock* bDst)
54845479 JITDUMP (" Added an unconditional jump to " FMT_BB " after block " FMT_BB " \n " , jmpBlk->GetTarget ()->bbNum ,
54855480 bSrc->bbNum );
54865481 }
5487- else if (bSrc->KindIs (BBJ_ALWAYS) && bSrc->HasInitializedTarget () && bSrc->JumpsToNext ())
5488- {
5489- bSrc->SetFlags (BBF_NONE_QUIRK);
5490- }
54915482
54925483 return jmpBlk;
54935484}
@@ -5944,7 +5935,7 @@ BasicBlock* Compiler::fgRelocateEHRange(unsigned regionIndex, FG_RELOCATE_TYPE r
59445935// Because this relies on ebdEnclosingTryIndex and ebdEnclosingHndIndex
59455936#endif // DEBUG
59465937
5947- #else // !FEATURE_EH_FUNCLETS
5938+ #else // !FEATURE_EH_FUNCLETS
59485939
59495940 for (XTnum = 0 , HBtab = compHndBBtab; XTnum < compHndBBtabCount; XTnum++, HBtab++)
59505941 {
@@ -5994,17 +5985,6 @@ BasicBlock* Compiler::fgRelocateEHRange(unsigned regionIndex, FG_RELOCATE_TYPE r
59945985
59955986 // We have decided to insert the block(s) after fgLastBlock
59965987 fgMoveBlocksAfter (bStart, bLast, insertAfterBlk);
5997-
5998- if (bPrev->KindIs (BBJ_ALWAYS) && bPrev->JumpsToNext ())
5999- {
6000- bPrev->SetFlags (BBF_NONE_QUIRK);
6001- }
6002-
6003- if (bLast->KindIs (BBJ_ALWAYS) && bLast->JumpsToNext ())
6004- {
6005- bLast->SetFlags (BBF_NONE_QUIRK);
6006- }
6007-
60085988#endif // !FEATURE_EH_FUNCLETS
60095989
60105990 goto DONE;
0 commit comments