aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2019-07-17 16:23:43 +0800
committerFelix Lange <fjl@twurst.com>2019-07-17 16:23:43 +0800
commit31a1f164d96b9ca09e55c86075ce0adb2589227a (patch)
treed7764c9267c1593ee572e238862b8e1e9f3c6eb3 /eth
parent6bd896a97f0c86fdb6d0538f5f839d7ea104e888 (diff)
downloadgo-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.tar
go-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.tar.gz
go-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.tar.bz2
go-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.tar.lz
go-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.tar.xz
go-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.tar.zst
go-tangerine-31a1f164d96b9ca09e55c86075ce0adb2589227a.zip
common/bitutil: use result of TestBytes to prevent dead code elimination (#19846)
Gollvm has very aggressive dead code elimination that completely removes one of these two benchmarks. To prevent this, use the result of the benchmark (a boolean), and to be "fair", make the transformation to both benchmarks. To be reliably assured of not removing the code, "use" means assigning to an exported global. Non-exported globals and //go:noinline functions are possibly subject to this optimization.
Diffstat (limited to 'eth')
0 files changed, 0 insertions, 0 deletions