[llvm] r352129 - [GlobalISel][AArch64] Avoid unused function warnings in Release builds

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 15:39:47 PST 2019


Author: d0k
Date: Thu Jan 24 15:39:47 2019
New Revision: 352129

URL: http://llvm.org/viewvc/llvm-project?rev=352129&view=rev
Log:
[GlobalISel][AArch64] Avoid unused function warnings in Release builds

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp?rev=352129&r1=352128&r2=352129&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp Thu Jan 24 15:39:47 2019
@@ -396,6 +396,7 @@ static unsigned selectLoadStoreUIOp(unsi
   return GenericOpc;
 }
 
+#ifndef NDEBUG
 /// Helper function that verifies that we have a valid copy at the end of
 /// selectCopy. Verifies that the source and dest have the expected sizes and
 /// then returns true.
@@ -426,6 +427,7 @@ static bool isValidCopy(const MachineIns
 
   return true;
 }
+#endif
 
 /// Helper function for selectCopy. Inserts a subregister copy from
 /// \p *From to \p *To, linking it up to \p I.




More information about the llvm-commits mailing list