[llvm-commits] [llvm] r162342 - /llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp

Craig Topper craig.topper at gmail.com
Tue Aug 21 22:36:44 PDT 2012


Author: ctopper
Date: Wed Aug 22 00:36:44 2012
New Revision: 162342

URL: http://llvm.org/viewvc/llvm-project?rev=162342&view=rev
Log:
Mark a function as static since it doesn't use anything in the class.

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=162342&r1=162341&r2=162342&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86VZeroUpper.cpp Wed Aug 22 00:36:44 2012
@@ -84,7 +84,7 @@
     //  2) All states must be clean for the result to be clean
     //  3) If none above and one unknown, the result state is also unknown
     //
-    unsigned computeState(unsigned PrevState, unsigned CurState) {
+    static unsigned computeState(unsigned PrevState, unsigned CurState) {
       if (PrevState == ST_INIT)
         return CurState;
 





More information about the llvm-commits mailing list