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
3 changes: 3 additions & 0 deletions backends/asm/optimize_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,9 @@ static int IsSafeShortForwardJump(IR *irbase) {
if (ir->opc == OPC_LABEL) {
if (ir->dst == target) return n;
else return 0;
} else if ((curfunc->optimize_flags & OPT_EXPERIMENTAL) && ir->opc == OPC_JUMP && ir->dst == target && ir->cond == irbase->cond) {
// Found jump that goes where we want to go, anyways.
return n;
}
// BRK instruction cannot be conditionalized??
if (ir->opc == OPC_BREAK) {
Expand Down