mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
radeon/llvm: enable LICM and DCE pass v2
LICM stands for Loop Invariant Code Motion. Instructions that does not depend of loop index are moved outside of loop body. DCE is DeadCodeElimination. v2: updated commit msg, thx to Vincent. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Vincent Lejeune <vljn at ovi.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
e4188ee13d
commit
a7a899584c
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue