summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit573ff3620cf6273fbb4923496df670a552022584 (patch)
tree9b3e6de5907dad245e01faa3ab9710798aff5aba /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent3d6220d9819be37c5c62574e6509b50c97290f55 (diff)
downloadbcm5719-llvm-573ff3620cf6273fbb4923496df670a552022584.tar.gz
bcm5719-llvm-573ff3620cf6273fbb4923496df670a552022584.zip
Make helper function static.
llvm-svn: 202596
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 0c765b64313..bac9e0eeef2 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud