Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/coreclr/jit/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4692,8 +4692,6 @@ bool Compiler::optReachWithoutCall(BasicBlock* topBB, BasicBlock* botBB)
// When we can determine this, then we can set BBF_GC_SAFE_POINT for
// those helpers too.

noway_assert(topBB->bbNum <= botBB->bbNum);

// We can always check topBB and botBB for any gc safe points and early out

if ((topBB->bbFlags | botBB->bbFlags) & BBF_GC_SAFE_POINT)
Expand All @@ -4709,6 +4707,8 @@ bool Compiler::optReachWithoutCall(BasicBlock* topBB, BasicBlock* botBB)
return true;
}

noway_assert(topBB->bbNum <= botBB->bbNum);

BasicBlock* curBB = topBB;
for (;;)
{
Expand Down