[llvm] r298485 - [X86] Remove an unused function from release builds. Reported by gccs unused function warning.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 23:07:58 PDT 2017
Author: ctopper
Date: Wed Mar 22 01:07:58 2017
New Revision: 298485
URL: http://llvm.org/viewvc/llvm-project?rev=298485&view=rev
Log:
[X86] Remove an unused function from release builds. Reported by gccs unused function warning.
Modified:
llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp
Modified: llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp?rev=298485&r1=298484&r2=298485&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp Wed Mar 22 01:07:58 2017
@@ -97,6 +97,7 @@ FunctionPass *llvm::createX86IssueVZeroU
return new VZeroUpperInserter();
}
+#ifndef NDEBUG
const char* VZeroUpperInserter::getBlockExitStateName(BlockExitState ST) {
switch (ST) {
case PASS_THROUGH: return "Pass-through";
@@ -105,6 +106,7 @@ const char* VZeroUpperInserter::getBlock
}
llvm_unreachable("Invalid block exit state.");
}
+#endif
/// VZEROUPPER cleans state that is related to Y/ZMM0-15 only.
/// Thus, there is no need to check for Y/ZMM16 and above.
More information about the llvm-commits
mailing list