From: Mathieu Desnoyers Date: Fri, 13 Jul 2012 21:29:45 +0000 (-0400) Subject: Filter interpreter: mark float test as unlikely X-Git-Tag: v2.1.0-rc1~35 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=f37201b3fa49bbbc7258affab90da44baf6f685b Filter interpreter: mark float test as unlikely Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-filter.c b/liblttng-ust/lttng-filter.c index 64576e88..bd208dcf 100644 --- a/liblttng-ust/lttng-filter.c +++ b/liblttng-ust/lttng-filter.c @@ -536,7 +536,7 @@ int lttng_filter_interpret_bytecode(void *filter_data, /* If REG_R0 is 0, skip and evaluate to 0 */ if ((reg[REG_R0].type == REG_S64 && reg[REG_R0].v == 0) - || (reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d == 0.0)) { + || unlikely(reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d == 0.0)) { dbg_printf("Jumping to bytecode offset %u\n", (unsigned int) insn->skip_offset); next_pc = start_pc + insn->skip_offset; @@ -552,7 +552,7 @@ int lttng_filter_interpret_bytecode(void *filter_data, /* If REG_R0 is nonzero, skip and evaluate to 1 */ if ((reg[REG_R0].type == REG_S64 && reg[REG_R0].v != 0) - || (reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d != 0.0)) { + || unlikely(reg[REG_R0].type == REG_DOUBLE && reg[REG_R0].d != 0.0)) { reg[REG_R0].v = 1; dbg_printf("Jumping to bytecode offset %u\n", (unsigned int) insn->skip_offset);