From: Simon Pilgrim Date: Sat, 23 Mar 2019 16:20:34 +0000 (+0000) Subject: Remove unused function argument. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9d9dfd3ee4d2a6332c51d6856abd90b7f430fd2;p=llvm Remove unused function argument. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356840 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 4ee7a2f891e..3d4d2a33241 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -2850,10 +2850,12 @@ void BoUpSLP::reorderAltShuffleOperands(const InstructionsState &S, // The vectorizer is trying to either have all elements one side being // instruction with the same opcode to enable further vectorization, or having // a splat to lower the vectorizing cost. -static bool shouldReorderOperands( - int i, unsigned Opcode, Instruction &I, ArrayRef Left, - ArrayRef Right, bool AllSameOpcodeLeft, bool AllSameOpcodeRight, - bool SplatLeft, bool SplatRight, Value *&VLeft, Value *&VRight) { +static bool shouldReorderOperands(int i, Instruction &I, ArrayRef Left, + ArrayRef Right, + bool AllSameOpcodeLeft, + bool AllSameOpcodeRight, bool SplatLeft, + bool SplatRight, Value *&VLeft, + Value *&VRight) { VLeft = I.getOperand(0); VRight = I.getOperand(1); // If we have "SplatRight", try to see if commuting is needed to preserve it. @@ -2946,7 +2948,7 @@ void BoUpSLP::reorderInputsAccordingToOpcode(const InstructionsState &S, // one side. Value *VLeft; Value *VRight; - if (shouldReorderOperands(i, Opcode, *I, Left, Right, AllSameOpcodeLeft, + if (shouldReorderOperands(i, *I, Left, Right, AllSameOpcodeLeft, AllSameOpcodeRight, SplatLeft, SplatRight, VLeft, VRight)) { Left.push_back(VRight);