@@ -3429,7 +3429,8 @@ static void *zend_jit_ir_compile(ir_ctx *ctx, size_t *size, const char *name)
3429
3429
{
3430
3430
void *entry;
3431
3431
3432
- if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_SRC) {
3432
+ if ((JIT_G(debug) & ZEND_JIT_DEBUG_IR_SRC)
3433
+ && (!name || (JIT_G(debug) & ZEND_JIT_DEBUG_ASM_STUBS))) {
3433
3434
if (name) fprintf(stderr, "%s: ; after folding\n", name);
3434
3435
ir_save(ctx, stderr);
3435
3436
}
@@ -3448,7 +3449,8 @@ static void *zend_jit_ir_compile(ir_ctx *ctx, size_t *size, const char *name)
3448
3449
ir_sccp(ctx);
3449
3450
#endif
3450
3451
3451
- if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_SCCP) {
3452
+ if ((JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_SCCP)
3453
+ && (!name || (JIT_G(debug) & ZEND_JIT_DEBUG_ASM_STUBS))) {
3452
3454
if (name) fprintf(stderr, "%s: ; after SCCP\n", name);
3453
3455
ir_save(ctx, stderr);
3454
3456
}
@@ -3460,7 +3462,8 @@ static void *zend_jit_ir_compile(ir_ctx *ctx, size_t *size, const char *name)
3460
3462
ir_build_dominators_tree(ctx);
3461
3463
ir_find_loops(ctx);
3462
3464
3463
- if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_SCCP) {
3465
+ if ((JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_SCCP)
3466
+ && (!name || (JIT_G(debug) & ZEND_JIT_DEBUG_ASM_STUBS))) {
3464
3467
if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_CFG) {
3465
3468
ir_dump_cfg(ctx, stderr);
3466
3469
}
@@ -3469,7 +3472,8 @@ static void *zend_jit_ir_compile(ir_ctx *ctx, size_t *size, const char *name)
3469
3472
ir_gcm(ctx);
3470
3473
ir_schedule(ctx);
3471
3474
3472
- if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_SCHEDULE) {
3475
+ if ((JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_SCHEDULE)
3476
+ && (!name || (JIT_G(debug) & ZEND_JIT_DEBUG_ASM_STUBS))) {
3473
3477
if (name) fprintf(stderr, "%s: ; after schedule\n", name);
3474
3478
ir_save(ctx, stderr);
3475
3479
if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_CFG) {
@@ -3484,7 +3488,8 @@ static void *zend_jit_ir_compile(ir_ctx *ctx, size_t *size, const char *name)
3484
3488
ir_coalesce(ctx);
3485
3489
ir_reg_alloc(ctx);
3486
3490
3487
- if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_REGS) {
3491
+ if ((JIT_G(debug) & ZEND_JIT_DEBUG_IR_AFTER_REGS)
3492
+ && (!name || (JIT_G(debug) & ZEND_JIT_DEBUG_ASM_STUBS))) {
3488
3493
if (name) fprintf(stderr, "%s: ; after register allocation\n", name);
3489
3494
ir_save(ctx, stderr);
3490
3495
if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_CFG) {
@@ -3497,7 +3502,8 @@ static void *zend_jit_ir_compile(ir_ctx *ctx, size_t *size, const char *name)
3497
3502
3498
3503
ir_schedule_blocks(ctx);
3499
3504
3500
- if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_FINAL) {
3505
+ if ((JIT_G(debug) & ZEND_JIT_DEBUG_IR_FINAL)
3506
+ && (!name || (JIT_G(debug) & ZEND_JIT_DEBUG_ASM_STUBS))) {
3501
3507
if (name) fprintf(stderr, "%s: ; final\n", name);
3502
3508
ir_save(ctx, stderr);
3503
3509
if (JIT_G(debug) & ZEND_JIT_DEBUG_IR_CFG) {
0 commit comments