X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Fgallivm%2Flp_bld_init.c;h=4a428ee02ade6432e5eb1c698135715982d77417;hb=f796b67431cfcadecfa983f9fc952dbee228cec0;hp=1153411dd5255caf65efc4a42c85e4bb4ffcef2b;hpb=b8f6858fcb762b47ca2ad30efd286bd203042f17;p=mesa.git diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index 1153411dd52..4a428ee02ad 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -79,6 +79,7 @@ static const struct debug_named_value lp_bld_debug_flags[] = { { "nopt", GALLIVM_DEBUG_NO_OPT, NULL }, { "perf", GALLIVM_DEBUG_PERF, NULL }, { "no_brilinear", GALLIVM_DEBUG_NO_BRILINEAR, NULL }, + { "no_rho_approx", GALLIVM_DEBUG_NO_RHO_APPROX, NULL }, { "gc", GALLIVM_DEBUG_GC, NULL }, DEBUG_NAMED_VALUE_END }; @@ -146,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