From: Benjamin Kramer Date: Thu, 24 Jan 2019 23:39:47 +0000 (+0000) Subject: [GlobalISel][AArch64] Avoid unused function warnings in Release builds X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29bfdee40823321eba2c18ebb0ab0e8844d6ed46;p=llvm [GlobalISel][AArch64] Avoid unused function warnings in Release builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352129 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64InstructionSelector.cpp b/lib/Target/AArch64/AArch64InstructionSelector.cpp index e1536dead10..0a98e7d13e3 100644 --- a/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -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.