Skip to content

Commit 3ac74fd

Browse files
committed
Only do it when we need to (local-reuse enabled for _current_ function)
1 parent 02d47e2 commit 3ac74fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backends/asm/outasm.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,11 @@ void ReplaceIRWithInline(IRList *irl, IR *origir, Function *func)
669669

670670
static unsigned inlineNum = 0;
671671
char prefix[64];
672-
snprintf(prefix,64-1,"_inline%d_",++inlineNum);
672+
if (curfunc->optimize_flags & OPT_LOCAL_REUSE) {
673+
snprintf(prefix,64-1,"_inline%d_",++inlineNum);
674+
} else {
675+
strcpy(prefix,"_inline_");
676+
}
673677

674678
DeleteIR(irl, origir);
675679
if (cond != COND_TRUE) {

0 commit comments

Comments
 (0)