<div dir="ltr"><div class="gmail_extra">On Wed, May 8, 2013 at 8:35 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is the select case really redundant now?</blockquote><div>
Yes, llvm::isKnownToBeAPowerOfTwo has support for select instructions. The function 'test4' in rem.ll provides verification that we still handle select instructions.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Would you mind starting a FileCheck test file?<br></blockquote><div style>Should I start a FileCheck file or would it be better FileCheck-ize rem.ll?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div class="h5"><br>
On 8 May 2013 18:22, David Majnemer <<a href="mailto:david.majnemer@gmail.com">david.majnemer@gmail.com</a>> wrote:<br>
> This patch replaces intelligence inside of InstCombiner::visitURem with a<br>
> call to isKnownToBeAPowerOfTwo.<br>
> By doing this, we can find more opportunities to transform urem instructions<br>
> to bitwise-and instructions.<br>
><br>
> --<br>
> David Majnemer<br>
><br>
</div></div>> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
</blockquote></div><br></div></div>