mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
draw/llvm: Add additional llvm optimization passes
It helps a bit with vertex shader performance on i915g (a couple percent faster with openarena). I have tried most other passes, and they weren't showing any measurable improvement. Note that my vertex shaders didn't have loops, so maybe the loop optimizations could still be useful in the future. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
0b0d6f97cf
commit
1c56fc1025
1 changed files with 3 additions and 0 deletions
|
|
@ -147,7 +147,10 @@ create_pass_manager(struct gallivm_state *gallivm)
|
|||
* but there are more on SVN.
|
||||
* TODO: Add more passes.
|
||||
*/
|
||||
LLVMAddScalarReplAggregatesPass(gallivm->passmgr);
|
||||
LLVMAddLICMPass(gallivm->passmgr);
|
||||
LLVMAddCFGSimplificationPass(gallivm->passmgr);
|
||||
LLVMAddReassociatePass(gallivm->passmgr);
|
||||
|
||||
if (HAVE_LLVM >= 0x207 && sizeof(void*) == 4) {
|
||||
/* For LLVM >= 2.7 and 32-bit build, use this order of passes to
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue