From 593cde04322c7ec02c8423170333c7bb8102e047 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 2 Dec 2020 11:31:57 -0800 Subject: [PATCH] intel/fs: Output opt_combine_constants debug to stderr It's a lot more useful to have it in the same stream with the INTEL_DEBUG=fs output. Reviewed-by: Faith Ekstrand Tested-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_fs_combine_constants.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/intel/compiler/brw_fs_combine_constants.cpp b/src/intel/compiler/brw_fs_combine_constants.cpp index a0ff721..32ba5a8 100644 --- a/src/intel/compiler/brw_fs_combine_constants.cpp +++ b/src/intel/compiler/brw_fs_combine_constants.cpp @@ -609,17 +609,18 @@ fs_visitor::opt_combine_constants() for (int i = 0; i < table.len; i++) { struct imm *imm = &table.imm[i]; - printf("0x%016" PRIx64 " - block %3d, reg %3d sub %2d, " - "Uses: (%2d, %2d), IP: %4d to %4d, length %4d\n", - (uint64_t)(imm->d & BITFIELD64_MASK(imm->size * 8)), - imm->block->num, - imm->nr, - imm->subreg_offset, - imm->must_promote, - imm->uses_by_coissue, - imm->first_use_ip, - imm->last_use_ip, - imm->last_use_ip - imm->first_use_ip); + fprintf(stderr, + "0x%016" PRIx64 " - block %3d, reg %3d sub %2d, " + "Uses: (%2d, %2d), IP: %4d to %4d, length %4d\n", + (uint64_t)(imm->d & BITFIELD64_MASK(imm->size * 8)), + imm->block->num, + imm->nr, + imm->subreg_offset, + imm->must_promote, + imm->uses_by_coissue, + imm->first_use_ip, + imm->last_use_ip, + imm->last_use_ip - imm->first_use_ip); } } -- 2.7.4