<div dir="ltr">Why are these functions unused? IF they're only used in assert or similar, perhaps they should be in #ifndef NDEBUG?</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 21, 2017 at 6:03 PM NAKAMURA Takumi 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: chapuni<br>
Date: Thu Sep 21 18:01:33 2017<br>
New Revision: 313947<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=313947&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=313947&view=rev</a><br>
Log:<br>
HexagonVectorLoopCarriedReuse.cpp: Apply LLVM_ATTRIBUTE_UNUSED. [-Wunused-function]<br>
<br>
Modified:<br>
    llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp<br>
<br>
Modified: llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp?rev=313947&r1=313946&r2=313947&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp?rev=313947&r1=313946&r2=313947&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp (original)<br>
+++ llvm/trunk/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp Thu Sep 21 18:01:33 2017<br>
@@ -183,6 +183,7 @@ namespace {<br>
    friend raw_ostream &operator<< (raw_ostream &OS, const DepChain &D);<br>
   };<br>
<br>
+  LLVM_ATTRIBUTE_UNUSED<br>
   raw_ostream &operator<<(raw_ostream &OS, const DepChain &D) {<br>
     const ChainOfDependences &CD = D.Chain;<br>
     int ChainSize = CD.size();<br>
@@ -206,6 +207,7 @@ namespace {<br>
     bool isDefined() { return Inst2Replace != nullptr; }<br>
   };<br>
   typedef struct ReuseValue ReuseValue;<br>
+  LLVM_ATTRIBUTE_UNUSED<br>
   raw_ostream &operator<<(raw_ostream &OS, const ReuseValue &RU) {<br>
     OS << "** ReuseValue ***\n";<br>
     OS << "Instruction to Replace: " << *(RU.Inst2Replace) << "\n";<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>