2 ms·
Strength reduction in this vein is pretty trivial though, even if there is lower hanging fruit. For example this is what transforming some_int * a_power_of_two
by kingkilr 15y ago
Strength reduction in this vein is pretty trivial though, even if there is lower hanging fruit. For example this is what transforming some_int * a_power_of_two looks like in PyPy: https://bitbucket.org/pypy/pypy/src/default/pypy/jit/metainterp/optimizeopt/rewrite.py#cl-132 https://bitbucket.org/pypy/pypy/src/default/pypy/jit/metaint...
- bzbarsky 15y agoIt's trivial if you don't mind the extra compilation time. If you're trying to make sure that your compile times are also short, it might not be worth it.... yet.