<div dir="ltr">Diff looks odd, what happened here?</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 11:48 AM Simon Pilgrim 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: rksimon<br>
Date: Wed Dec 5 02:45:44 2018<br>
New Revision: 348350<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=348350&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=348350&view=rev</a><br>
Log:<br>
Remove superfluous comments. NFCI.<br>
<br>
As requested in D54698.<br>
<br>
Modified:<br>
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp<br>
<br>
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp?rev=348350&r1=348349&r2=348350&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp?rev=348350&r1=348349&r2=348350&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp (original)<br>
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp Wed Dec 5 02:45:44 2018<br>
@@ -129,12 +129,12 @@ class VectorLegalizer {<br>
SDValue ExpandFNEG(SDValue Op);<br>
SDValue ExpandFSUB(SDValue Op);<br>
SDValue ExpandBITREVERSE(SDValue Op);<br>
- SDValue ExpandCTPOP(SDValue Op);<br>
- SDValue ExpandCTLZ(SDValue Op);<br>
- SDValue ExpandCTTZ(SDValue Op);<br>
- SDValue ExpandFMINNUM_FMAXNUM(SDValue Op);<br>
- SDValue ExpandStrictFPOp(SDValue Op);<br>
-<br>
+ SDValue ExpandCTPOP(SDValue Op);<br>
+ SDValue ExpandCTLZ(SDValue Op);<br>
+ SDValue ExpandCTTZ(SDValue Op);<br>
+ SDValue ExpandFMINNUM_FMAXNUM(SDValue Op);<br>
+ SDValue ExpandStrictFPOp(SDValue Op);<br>
+<br>
/// Implements vector promotion.<br>
///<br>
/// This is essentially just bitcasting the operands to a different type and<br>
@@ -746,12 +746,12 @@ SDValue VectorLegalizer::Expand(SDValue<br>
case ISD::CTLZ:<br>
case ISD::CTLZ_ZERO_UNDEF:<br>
return ExpandCTLZ(Op);<br>
- case ISD::CTTZ:<br>
- case ISD::CTTZ_ZERO_UNDEF:<br>
- return ExpandCTTZ(Op);<br>
- case ISD::FMINNUM:<br>
- case ISD::FMAXNUM:<br>
- return ExpandFMINNUM_FMAXNUM(Op);<br>
+ case ISD::CTTZ:<br>
+ case ISD::CTTZ_ZERO_UNDEF:<br>
+ return ExpandCTTZ(Op);<br>
+ case ISD::FMINNUM:<br>
+ case ISD::FMAXNUM:<br>
+ return ExpandFMINNUM_FMAXNUM(Op);<br>
case ISD::STRICT_FADD:<br>
case ISD::STRICT_FSUB:<br>
case ISD::STRICT_FMUL:<br>
@@ -1123,38 +1123,32 @@ SDValue VectorLegalizer::ExpandFSUB(SDVa<br>
return Op; // Defer to LegalizeDAG<br>
<br>
return DAG.UnrollVectorOp(Op.getNode());<br>
-}<br>
-<br>
-SDValue VectorLegalizer::ExpandCTPOP(SDValue Op) {<br>
- // Attempt to expand using TargetLowering.<br>
- SDValue Result;<br>
- if (TLI.expandCTPOP(Op.getNode(), Result, DAG))<br>
- return Result;<br>
-<br>
- // Otherwise go ahead and unroll.<br>
- return DAG.UnrollVectorOp(Op.getNode());<br>
-}<br>
-<br>
-SDValue VectorLegalizer::ExpandCTLZ(SDValue Op) {<br>
- // Attempt to expand using TargetLowering.<br>
- SDValue Result;<br>
- if (TLI.expandCTLZ(Op.getNode(), Result, DAG))<br>
- return Result;<br>
-<br>
- // Otherwise go ahead and unroll.<br>
- return DAG.UnrollVectorOp(Op.getNode());<br>
-}<br>
-<br>
-SDValue VectorLegalizer::ExpandCTTZ(SDValue Op) {<br>
- // Attempt to expand using TargetLowering.<br>
- SDValue Result;<br>
- if (TLI.expandCTTZ(Op.getNode(), Result, DAG))<br>
- return Result;<br>
-<br>
- // Otherwise go ahead and unroll.<br>
- return DAG.UnrollVectorOp(Op.getNode());<br>
-}<br>
-<br>
+}<br>
+<br>
+SDValue VectorLegalizer::ExpandCTPOP(SDValue Op) {<br>
+ SDValue Result;<br>
+ if (TLI.expandCTPOP(Op.getNode(), Result, DAG))<br>
+ return Result;<br>
+<br>
+ return DAG.UnrollVectorOp(Op.getNode());<br>
+}<br>
+<br>
+SDValue VectorLegalizer::ExpandCTLZ(SDValue Op) {<br>
+ SDValue Result;<br>
+ if (TLI.expandCTLZ(Op.getNode(), Result, DAG))<br>
+ return Result;<br>
+<br>
+ return DAG.UnrollVectorOp(Op.getNode());<br>
+}<br>
+<br>
+SDValue VectorLegalizer::ExpandCTTZ(SDValue Op) {<br>
+ SDValue Result;<br>
+ if (TLI.expandCTTZ(Op.getNode(), Result, DAG))<br>
+ return Result;<br>
+<br>
+ return DAG.UnrollVectorOp(Op.getNode());<br>
+}<br>
+<br>
SDValue VectorLegalizer::ExpandFMINNUM_FMAXNUM(SDValue Op) {<br>
if (SDValue Expanded = TLI.expandFMINNUM_FMAXNUM(Op.getNode(), DAG))<br>
return Expanded;<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>