Displaying 1 result from an estimated 1 matches for "block_box".
Did you mean:
  black_box
  
2015 Nov 03
3
[RFC] A new intrinsic, `llvm.blackbox`, to explicitly prevent constprop, die, etc optimizations
The common use case I've seen for a black box like construct is when 
writing microbenchmarks.  In particular, you're generally looking for a 
way to "sink" the result of a computation without having that sink 
outweigh the cost of the thing you're trying to measure.
Common alternate approaches are to use a volatile store (so that it 
can't be eliminated or sunk out of