<div dir="ltr">Worth an assert? (quite possibly not - but figured I'd ask)</div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 10, 2017 at 11:28 AM Craig Topper via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@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">Author: ctopper<br>
Date: Wed May 10 13:15:14 2017<br>
New Revision: 302701<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=302701&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=302701&view=rev</a><br>
Log:<br>
[APInt] Remove check for single word since single word was handled earlier in the function. NFC<br>
<br>
Modified:<br>
    llvm/trunk/lib/Support/APInt.cpp<br>
<br>
Modified: llvm/trunk/lib/Support/APInt.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=302701&r1=302700&r2=302701&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=302701&r1=302700&r2=302701&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Support/APInt.cpp (original)<br>
+++ llvm/trunk/lib/Support/APInt.cpp Wed May 10 13:15:14 2017<br>
@@ -1697,8 +1697,8 @@ void APInt::udivrem(const APInt &LHS, co<br>
<br>
   if (lhsWords == 1 && rhsWords == 1) {<br>
     // There is only one word to consider so use the native versions.<br>
-    uint64_t lhsValue = LHS.isSingleWord() ? LHS.U.VAL : LHS.U.pVal[0];<br>
-    uint64_t rhsValue = RHS.isSingleWord() ? RHS.U.VAL : RHS.U.pVal[0];<br>
+    uint64_t lhsValue = LHS.U.pVal[0];<br>
+    uint64_t rhsValue = RHS.U.pVal[0];<br>
     Quotient = APInt(LHS.getBitWidth(), lhsValue / rhsValue);<br>
     Remainder = APInt(LHS.getBitWidth(), lhsValue % rhsValue);<br>
     return;<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>