[llvm] c241659 - [X86] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 18 23:23:05 PDT 2021
Author: Fangrui Song
Date: 2021-03-18T23:22:58-07:00
New Revision: c241659d1573b0c89fa4d6591d7bd9d3fc84e37a
URL: https://github.com/llvm/llvm-project/commit/c241659d1573b0c89fa4d6591d7bd9d3fc84e37a
DIFF: https://github.com/llvm/llvm-project/commit/c241659d1573b0c89fa4d6591d7bd9d3fc84e37a.diff
LOG: [X86] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
Added:
Modified:
llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp b/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
index 134df5d9569c..e267ba44e28b 100644
--- a/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
+++ b/llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
@@ -43,12 +43,14 @@ using namespace PatternMatch;
#define DEBUG_TYPE "lower-amx-intrinsics"
+#ifndef NDEBUG
static bool isV256I32Ty(Type *Ty) {
if (auto *FVT = dyn_cast<FixedVectorType>(Ty))
return FVT->getNumElements() == 256 &&
FVT->getElementType()->isIntegerTy(32);
return false;
}
+#endif
namespace {
class X86LowerAMXIntrinsics {
More information about the llvm-commits
mailing list