From 451c9610aaaeec7e2f7acebd2dfead82ecf6ebe5 Mon Sep 17 00:00:00 2001 From: cathugger Date: Wed, 20 Nov 2019 16:22:43 +0000 Subject: [PATCH] don't offload dead code elimination to compiler as we can do that in preprocessor --- worker_batch_pass.inc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker_batch_pass.inc.h b/worker_batch_pass.inc.h index 93f4eb0..31f48d7 100644 --- a/worker_batch_pass.inc.h +++ b/worker_batch_pass.inc.h @@ -123,9 +123,8 @@ initseed: } // continue if have leftovers, DETERMINISTIC_LOOP_COUNT - counter < BATCHNUM * 8 // can't have leftovers in theory if BATCHNUM was power of 2 and smaller than DETERMINISTIC_LOOP_COUNT bound - if (((BATCHNUM & (BATCHNUM - 1)) || (BATCHNUM * 8) > DETERMINISTIC_LOOP_COUNT) && - counter < DETERMINISTIC_LOOP_COUNT) - { +#if (BATCHNUM & (BATCHNUM - 1)) || (BATCHNUM * 8) > DETERMINISTIC_LOOP_COUNT + if (counter < DETERMINISTIC_LOOP_COUNT) { ge_p1p1 sum; if (unlikely(endwork)) @@ -190,6 +189,7 @@ initseed: ; } } +#endif // (BATCHNUM & (BATCHNUM - 1)) || (BATCHNUM * 8) > DETERMINISTIC_LOOP_COUNT goto initseed; end: