<p dir="ltr"><br>
On Jul 3, 2016 11:22 PM, "Sean Silva via llvm-commits" <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
><br>
> silvas added a comment.<br>
><br>
> Thanks for the comments Davide. As a quick reminder, the purpose of this patch is just to be a proof of concept that we can all agree is the right direction (or figure out why not). The patch is not intended to be committed as-is to trunk, so I'd like to avoid discussing usual code hygiene / "janitorial" details -- I've deliberately skimped on some of them or done things in a suboptimal way just to keep things mechanical.<br>
><br>
><br>
> ================<br>
> Comment at: include/llvm/Analysis/CGSCCPassManager.h:104<br>
> @@ +103,3 @@<br>
> +<br>
> +    // XXX: no existing CGSCC passes use this.<br>
> +    //bool Changed = doInitialization(CG);<br>
> ----------------<br>
> davide wrote:<br>
> > just remove it ? =)<br>
> I guess I should have said this before, but all the things marked with XXX are things that I wanted to highlight for reviewers. They are just comments about non-obvious things that I thought reviewers would find useful. For example, if somebody is looking at the code of `CGPassManager::runOnModule` and comparing it with here, this will save them the time of going and looking through the existing passes just to come to the same conclusion.<br>
><br>
> Some of the XXX comments will likely turn into regular comments, other will just be deleted because they are only relevant to this proof of concept and won't be issues for the real patches that will be committed to trunk (e.g. commented-out code :) ).<br>
></p>
<p dir="ltr">Fair enough. If it wasn't clear, +1 from me on this as general direction. I agree we can settle details later.</p>
<p dir="ltr">> ================<br>
> Comment at: lib/Transforms/IPO/FunctionAttrs.cpp:1027<br>
> @@ -1081,2 +1026,3 @@<br>
>      Function *F = I->getFunction();<br>
> -    if (!F || F->hasFnAttribute(Attribute::OptimizeNone)) {<br>
> +    // XXX: The isDeclaration check here is because in the new PM BasicAA<br>
> +    // uses DomTree which will cause it to crash on declarations.<br>
> ----------------<br>
> davide wrote:<br>
> > XXX -> FIXME? Here and everywhere else in the patch where it applies<br>
> It isn't a FIXME. It is a note for reviewers. It will turn into just a regular comment since there isn't really anything to "fix" per se.<br>
><br>
><br>
> <a href="http://reviews.llvm.org/D21921">http://reviews.llvm.org/D21921</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</p>