<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Sep 19, 2018 at 3:22 PM Krzysztof Parzyszek via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 9/19/2018 5:04 PM, James Courtier-Dutton via llvm-dev wrote:<br>
> I would take the opinion that the code should be self documenting.<br>
> So, based on the function name, it should be obvious which it is.<br>
<br>
So "analyzeBranch" returns "true" or "false" on failure? And if it's not <br>
obvious, does it mean that the name is wrongly chosen?<br></blockquote><div><br></div><div>There are a host of issues with `analyzeBranch`'s interface. They defy description.</div><div><br></div><div>Let's start with the fact that it *mutates the branch*.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-Krzysztof<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>