[llvm] r344056 - [InstCombine] make helper function 'static'; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 9 08:29:26 PDT 2018


Author: spatel
Date: Tue Oct  9 08:29:26 2018
New Revision: 344056

URL: http://llvm.org/viewvc/llvm-project?rev=344056&view=rev
Log:
[InstCombine] make helper function 'static'; NFC

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineVectorOps.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineVectorOps.cpp?rev=344056&r1=344055&r2=344056&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineVectorOps.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineVectorOps.cpp Tue Oct  9 08:29:26 2018
@@ -1445,8 +1445,8 @@ static Instruction *foldSelectShuffle(Sh
 /// Match a shuffle-select-shuffle pattern where the shuffles are widening and
 /// narrowing (concatenating with undef and extracting back to the original
 /// length). This allows replacing the wide select with a narrow select.
-Instruction *narrowVectorSelect(ShuffleVectorInst &Shuf,
-                                InstCombiner::BuilderTy &Builder) {
+static Instruction *narrowVectorSelect(ShuffleVectorInst &Shuf,
+                                       InstCombiner::BuilderTy &Builder) {
   // This must be a narrowing identity shuffle. It extracts the 1st N elements
   // of the 1st vector operand of a shuffle.
   if (!match(Shuf.getOperand(1), m_Undef()) || !Shuf.isIdentityWithExtract())




More information about the llvm-commits mailing list