[Mesa-dev] [PATCH 1/5] gallivm: (trivial) remove unnecessary disabled debug code

Jose Fonseca jfonseca at vmware.com
Tue May 13 05:56:39 PDT 2014


My recent patch series removes this function altogether.

Jose

----- Original Message -----
> From: Roland Scheidegger <sroland at 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
> 


More information about the mesa-dev mailing list