I remember that Og has been added to clang in 4.0 offering a potential better 
experience than O1, see:
https://github.com/llvm-mirror/clang/commit/14bfc9e99e6e6903b09480a22c153032be77ae4e

You could also try using O1, since the difference between O0 should be:

opt adds: -globalopt -demanded-bits -branch-prob -inferattrs -ipsccp -dse 
-loop-simplify -scoped-noalias -barrier -adce -deadargelim -memdep -licm 
-globals-aa -rpo-functionattrs -basiccg -loop-idiom -forceattrs -mem2reg 
-simplifycfg -early-cse -instcombine -sccp -loop-unswitch -loop-vectorize 
-tailcallelim -functionattrs -loop-accesses -memcpyopt -loop-deletion 
-reassociate -strip-dead-prototypes -loops -basicaa -correlated-propagation 
-lcssa -domtree -always-inline -aa -block-freq -float2int -lower-expect -sroa 
-loop-unroll -alignment-from-assumptions -lazy-value-info -prune-eh 
-jump-threading -loop-rotate -indvars -bdce -scalar-evolution -tbaa 
-assumption-cache-tracker
clang adds : -momit-leaf-frame-pointer
clang drops : -mdisable-fp-elim -mrelax-all

Hope this helps!

> On 8 Dec 2017, at 08:53, [email protected] wrote:
> 
> I'm looking for a good default setup for building a debug Firefox using clang 
> (5.0) that is at the same time usable.
> 
> With GCC I hit a good sweet spot with:
> 
> ```
> mk_add_options "export RUSTC_WRAPPER=sccache" 
> mk_add_options 'export CARGO_INCREMENTAL=1' 
> 
> ac_add_options --with-ccache
> 
> ac_add_options --enable-optimize="-g -Og"
> ac_add_options --enable-debug-symbols
> ac_add_options --enable-debug
> ```
> 
> but the same settings when I add:
> 
> ```
> export CC="clang"
> export CXX="clang++"
> ```
> 
> give me a much, much slower build that feels very slow to start and UI is 
> very noticeably slower.
> 
> Any recommendations?
> 
> Thanks,
> zb.
> _______________________________________________
> dev-platform mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to