<div dir="ltr"><br>On Mon, Aug 10, 2020 at 12:20 AM Per Nordlöw via Digitalmars-d-learn <<a href="mailto:digitalmars-d-learn@puremagic.com">digitalmars-d-learn@puremagic.com</a>> wrote:<br>><br>> Is cross-module-inlining enabled by default in LDC when compiling<br>> in release mode or do I have to use explicitly flag for it? I<br>> can't find any such flag from the output of neither<br>><br>>      ldc2 -h<br>><br>> nor<br>><br>>      ldmd2 -h<br>><br>> Johan Engelen mentioned this, then experimental, flag in his<br>> DConf talk from 2017 [1]<br>><br>> [1] <a href="https://www.youtube.com/watch?v=IZY67TBZ0V4">https://www.youtube.com/watch?v=IZY67TBZ0V4</a><br><br>ldc2 --help-hidden | grep cross<br>  --disable-demotion                                              - Clone multicolor basic blocks but do not demote cross scopes<br> <b> --enable-cross-module-inlining=<value>                          - (*) Enable cross-module function inlining (default disabled)</b><br>  --iterative-counter-promotion                                   - Allow counter promotion across the whole loop nest.<br>  --jump-threading-across-loop-headers                            - Allow JumpThreading to thread across loop headers, for testing<br>  --licm-n2-threshold=<int>                                       - How many instruction to cross product using AA<br>  --lsr-backedge-indexing                                         - Enable the generation of cross iteration indexed memops<br>    =cross-dso-cfi                                                -   Cross-DSO CFI<br>    =cross-dso-cfi                                                -   Cross-DSO CFI<br>  --split-dwarf-cross-cu-references                               - Enable cross-cu references in DWO files<br>  --x86-align-branch-boundary=<uint</div>