From: Roland Scheidegger <srol...@vmware.com> gallivm_verify_function is the only caller of gallivm_optimize_function and it already does this (except it's enabled there). --- src/gallium/auxiliary/gallivm/lp_bld_init.c | 8 -------- 1 file changed, 8 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index 61b561f..ba992f5 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -580,14 +580,6 @@ gallivm_optimize_function(struct gallivm_state *gallivm, /* Apply optimizations to LLVM IR */ LLVMRunFunctionPassManager(gallivm->passmgr, func); - - if (0) { - if (gallivm_debug & GALLIVM_DEBUG_IR) { - /* Print the LLVM IR to stderr */ - lp_debug_dump_value(func); - debug_printf("\n"); - } - } } -- 1.9.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev