Closed pcc closed 9 years ago
Is there a reason not to enable it all the time? GCC says DCE is enabled at levels 0+; not sure about Clang/LLVM.
We already get DCE from the pass manager builder at -O1 and higher. The issue here is that the builder does not add the pass at -O0 so we need to add it ourselves.
Okay, thanks. LGTM.
...ctions
This fixes the libgo build at -O0. This also seems generally useful for compatibility with other compilers.