projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
808c89f
)
[X86] Remove an unused function from release builds. Reported by gccs unused function...
author
Craig Topper
<craig.topper@gmail.com>
Wed, 22 Mar 2017 06:07:58 +0000
(06:07 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Wed, 22 Mar 2017 06:07:58 +0000
(06:07 +0000)
llvm-svn: 298485
llvm/lib/Target/X86/X86VZeroUpper.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86VZeroUpper.cpp
b/llvm/lib/Target/X86/X86VZeroUpper.cpp
index
41f6219
..
d17dfac
100644
(file)
--- a/
llvm/lib/Target/X86/X86VZeroUpper.cpp
+++ b/
llvm/lib/Target/X86/X86VZeroUpper.cpp
@@
-97,6
+97,7
@@
FunctionPass *llvm::createX86IssueVZeroUpperPass() {
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::getBlockExitStateName(BlockExitState ST) {
}
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.