[Mesa-dev] [PATCH 7/7] radeon/llvm: enable LICM and DCE pass

Vincent Lejeune vljn at ovi.com
Tue Mar 5 09:04:28 PST 2013


Reviewed-by: Vincent Lejeune <vljn at ovi.com>




----- Mail original -----
> De : Christian König <deathsimple at vodafone.de>
> À : mesa-dev at lists.freedesktop.org
> Cc : michel at daenzer.net
> Envoyé le : Mardi 5 mars 2013 15h27
> Objet : [Mesa-dev] [PATCH 7/7] radeon/llvm: enable LICM and DCE pass
> 
> From: Christian König <christian.koenig at amd.com>
> 
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
> .../drivers/radeon/radeon_setup_tgsi_llvm.c        |    2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c 
> b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
> index f7b7586..f017b87 100644
> --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
> +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
> @@ -1281,6 +1281,8 @@ void radeon_llvm_finalize_module(struct 
> radeon_llvm_context * ctx)
> 
>     /* Add some optimization passes */
>     LLVMAddScalarReplAggregatesPass(gallivm->passmgr);
> +    LLVMAddLICMPass(gallivm->passmgr);
> +    LLVMAddAggressiveDCEPass(gallivm->passmgr);
>     LLVMAddCFGSimplificationPass(gallivm->passmgr);
> 
>     /* Run the passs */
> -- 
> 1.7.9.5
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list