[LLVMdev] questions about the mc-relax-all flag

Eli Bendersky eliben at google.com
Fri Dec 7 06:33:06 PST 2012

> I think you are right about it being an optimization (compile time
> optimization to be precise). In fact, it is used by default at -O0,
> run "clang -c test.c -v" and you will see -mrelax-all being passed,
> but not if you add -O1.
> It is not used on optimized builds because it produces larger binaries.

Yep. So if we intend to keep it around I propose to rename it to
-mc-optimize-relaxation, or -mc-fast-relaxation or something of the
sort (I think that the flag is obscure enough to deserve a long,
verbose and descriptive name).


More information about the llvm-dev mailing list