[llvm-commits] [patch] Don't link as many parts of llvm into bugpoint

Tobias Grosser grosser at fim.uni-passau.de
Tue Aug 10 00:57:34 PDT 2010


On 08/10/2010 04:32 AM, Rafael Espindola wrote:
> The attached patch is mostly a request for comments. On a debug build
> it reduces bugpoint from 68 MB to 34 MB. The difference is not free:
>
> *) The std-compile-opts and std-link-opts are gone.
> *) Passes now have to be listed with the -pass option.
>
> I think I can get those back with some more refactoring, but would
> like some opinions first. Do you think the patch is OK? Do you think
> it is OK if I manage to keep the current command line interface? The
> main reason for this is that since bugpoint is a tool for hunting bugs
> in llvm, it is nice for it to not be linked with every single LLVM
> pass. Specially if the only thing it does with most of those passes is
> collect their names :-)
>
> Cheers,

Just from my point of view I love to be able to use the same command 
line for opt and bugpoint. If opt fails with a bug I just replace "opt" 
with "bugpoint" in the command line.
As I sometimes use the -std-compile-opts flag, it would be inconvenient 
to have to replace it manually. Maybe there is an easy way to get the 
-std-compile-opts support back without having to link to all those other 
libraries?

By the way, bugpoint always gives me an error if I leave the "-o" option 
in the command line. It would be nice if it could just ignore it with a 
warning. Like this I really just need to replace "opt" with "bugpoint".

Thanks for you ongoing great work on bugpoint.

Tobi



More information about the llvm-commits mailing list