[PATCH] D35188: Add bitreverse LNT benchmark.
Tony Jiang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 13:16:59 PDT 2017
jtony marked an inline comment as done.
jtony added inline comments.
================
Comment at: SingleSource/Benchmarks/Misc/revertBits.c:12
+#define NUM 0x1000000
+int __attribute__((noinline)) ReverseBits32(int n) {
+ n = ((n >> 1) & 0x55555555) | ((n & 0x55555555) << 1);
----------------
nemanjai wrote:
> We had equivalently poor code gen for `__builtin_bitreverse<N>`. Don't we want this in the test case as well?
Yes, we want that too, it is added in the new patch.
https://reviews.llvm.org/D35188
More information about the llvm-commits
mailing list