3 ms·
How come the optimizer doesn't figure out theIntDist is constant if it's declared outside the loop? Given that the function is templated, it should have access
by DarkKomunalec 9y ago
How come the optimizer doesn't figure out theIntDist is constant if it's declared outside the loop? Given that the function is templated, it should have access to its internals, and so have all the information needed to do constant propagation, no?