<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 22, 2017 at 7:19 AM Hal Finkel via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hfinkel added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D38054#878633" rel="noreferrer" target="_blank">https://reviews.llvm.org/D38054#878633</a>, @nemanjai wrote:<br>
<br>
> In <a href="https://reviews.llvm.org/D38054#878445" rel="noreferrer" target="_blank">https://reviews.llvm.org/D38054#878445</a>, @echristo wrote:<br>
><br>
> > In <a href="https://reviews.llvm.org/D38054#877711" rel="noreferrer" target="_blank">https://reviews.llvm.org/D38054#877711</a>, @hfinkel wrote:<br>
> ><br>
> > > I think this generally looks fine.<br>
> > ><br>
> > > Just as a general note on code organizations and commenting, we seem to be accumulating a pretty deep call tree here of functions that only work correctly in 64-bit mode. Not in this patch, but we should do something about this (either segregating these things into a distinct part of the file and/or adding asserts and/or comments to the 64-bit-mode-only functions.<br>
> ><br>
> ><br>
> > Agreed. Also a lot of the fine points of when to extend and when not could probably be split out as well. This is definitely getting pretty unwieldy.<br>
> ><br>
> > -eric<br>
><br>
><br>
> OK. I'll commit this patch as-is with the inline comment addressed.<br>
><br>
> Then perhaps in a subsequent patch, I'll create something like `class GPRComparisonSelector` that uses essentially the same approach as the `BitPermutationSelector`. The `Select()` function will do the necessary checks and exit early if we're not a PPC64 target. All the functions that do the actual selection will be private. This way we should be able to avoid carelessly calling these functions under invalid conditions.<br>
>  Does that sound like a good plan?<br>
<br>
<br>
Yes, I think that would be better.<br>
<br>
<br></blockquote><div><br></div><div>Agreed.</div><div><br></div><div>-eric</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D38054" rel="noreferrer" target="_blank">https://reviews.llvm.org/D38054</a><br>
<br>
<br>
<br>
</blockquote></div></div>