Skip to content

Commit 1b45b83

Browse files
Make isRemovableJmpCandidate less restrictive
1 parent 2046432 commit 1b45b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/codegenlinear.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ void CodeGen::genCodeForBBlist()
756756
// AMD64 requires an instruction after a call instruction for unwinding
757757
// inside an EH region so if the last instruction generated was a call instruction
758758
// do not allow this jump to be marked for possible later removal.
759-
isRemovableJmpCandidate = isRemovableJmpCandidate && !GetEmitter()->emitIsLastInsCall();
759+
isRemovableJmpCandidate = isRemovableJmpCandidate && !emitNop;
760760
#endif // TARGET_AMD64
761761

762762
inst_JMP(EJ_jmp, block->GetJumpDest(), isRemovableJmpCandidate);

0 commit comments

Comments
 (0)