summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-03-01 17:24:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-03-01 17:24:40 +0000
commit71e50f0afd94be865ce796728740daa5ca916849 (patch)
tree560d97c1a6b05a73e492bc936962e01664c1d0f0 /lib/CodeGen/CodeGenPrepare.cpp
parent9b1add5551f371e1a1cd0492999850c3608d6b95 (diff)
downloadllvm-71e50f0afd94be865ce796728740daa5ca916849.tar.gz
llvm-71e50f0afd94be865ce796728740daa5ca916849.tar.bz2
llvm-71e50f0afd94be865ce796728740daa5ca916849.tar.xz
Make helper function static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--lib/CodeGen/CodeGenPrepare.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenPrepare.cpp b/lib/CodeGen/CodeGenPrepare.cpp
index 0c765b6431..bac9e0eeef 100644
--- a/lib/CodeGen/CodeGenPrepare.cpp
+++ b/lib/CodeGen/CodeGenPrepare.cpp
@@ -2725,8 +2725,7 @@ bool CodeGenPrepare::OptimizeSelectInst(SelectInst *SI) {
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) {