Re:Optimizing C++ Code: Dead Code Elimination
by DannyBee on Wednesday August 14, 2013 @12:40PM
(#6212543)
Yes, which is kinda sad.
both GCC and LLVM do it as a result of computing scalar evolutions for the variables, and then instantiating the final values after the loop.
There are certain calculations both will bail on due to solving cost (rather than inability to solve), but otherwise ...
There are certain calculations both will bail on due to solving cost (rather than inability to solve), but otherwise ...