[llvm] r202596 - Make helper function static.

Benjamin Kramer benny.kra at googlemail.com
Sat Mar 1 09:24:40 PST 2014


Author: d0k
Date: Sat Mar  1 11:24:40 2014
New Revision: 202596

URL: http://llvm.org/viewvc/llvm-project?rev=202596&view=rev
Log:
Make helper function static.

Modified:
    llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=202596&r1=202595&r2=202596&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Sat Mar  1 11:24:40 2014
@@ -2725,8 +2725,7 @@ bool CodeGenPrepare::OptimizeSelectInst(
   return true;
 }
 
-
-bool isBroadcastShuffle(ShuffleVectorInst *SVI) {
+static bool isBroadcastShuffle(ShuffleVectorInst *SVI) {
   SmallVector<int, 16> Mask(SVI->getShuffleMask());
   int SplatElem = -1;
   for (unsigned i = 0; i < Mask.size(); ++i) {





More information about the llvm-commits mailing list