]> granicus.if.org Git - llvm/commitdiff
[GlobalISel][AArch64] Avoid unused function warnings in Release builds
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 24 Jan 2019 23:39:47 +0000 (23:39 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 24 Jan 2019 23:39:47 +0000 (23:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352129 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64InstructionSelector.cpp

index e1536dead1040411c0b6429aa702148ce061f8fc..0a98e7d13e3491a188cb27a9d82093925ad56c5e 100644 (file)
@@ -396,6 +396,7 @@ static unsigned selectLoadStoreUIOp(unsigned GenericOpc, unsigned RegBankID,
   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 MachineInstr &I, const RegisterBank &DstBank,
 
   return true;
 }
+#endif
 
 /// Helper function for selectCopy. Inserts a subregister copy from
 /// \p *From to \p *To, linking it up to \p I.