diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-09-09 12:09:44 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-09-11 13:29:29 +0100 |
commit | dcc5d7f67220bc93aa7a351658649877c7e4cf69 (patch) | |
tree | 720424cecef9793f994cccbf61c6fd840aed50c4 /src/gallium/auxiliary/gallivm/lp_bld_logic.c | |
parent | c0d41d0404285df4f3a8728ddc3b451e54011c7a (diff) |
gallivm: Add a new debug flag to warn about performance issues.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_logic.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_logic.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.c b/src/gallium/auxiliary/gallivm/lp_bld_logic.c index db25981491..a959bd4ad4 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_logic.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.c @@ -40,6 +40,7 @@ #include "lp_bld_type.h" #include "lp_bld_const.h" #include "lp_bld_intr.h" +#include "lp_bld_debug.h" #include "lp_bld_logic.h" @@ -325,8 +326,10 @@ lp_build_compare(LLVMBuilderRef builder, res = LLVMGetUndef(int_vec_type); - debug_printf("%s: warning: using slow element-wise int" - " vector comparison\n", __FUNCTION__); + if (gallivm_debug & GALLIVM_DEBUG_PERF) { + debug_printf("%s: using slow element-wise int" + " vector comparison\n", __FUNCTION__); + } for(i = 0; i < type.length; ++i) { LLVMValueRef index = LLVMConstInt(LLVMInt32Type(), i, 0); |