From 039ff29ef6b51c80dd5dbd00dda3515ef9e1558a Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Thu, 11 Jun 2020 16:50:03 -0400 Subject: [PATCH] [VectorCombine] remove unused parameters; NFC --- llvm/lib/Transforms/Vectorize/VectorCombine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp index b68182e6098d..01403636b2b6 100644 --- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp +++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp @@ -159,7 +159,7 @@ static bool isExtractExtractCheap(Instruction *Ext0, Instruction *Ext1, /// compares followed by extract. /// cmp (ext0 V0, C), (ext1 V1, C) static void foldExtExtCmp(Instruction *Ext0, Instruction *Ext1, - Instruction &I, const TargetTransformInfo &TTI) { + Instruction &I) { assert(isa(&I) && "Expected a compare"); // cmp Pred (extelt V0, C), (extelt V1, C) --> extelt (cmp Pred V0, V1), C @@ -178,7 +178,7 @@ static void foldExtExtCmp(Instruction *Ext0, Instruction *Ext1, /// binops followed by extract. /// bo (ext0 V0, C), (ext1 V1, C) static void foldExtExtBinop(Instruction *Ext0, Instruction *Ext1, - Instruction &I, const TargetTransformInfo &TTI) { + Instruction &I) { assert(isa(&I) && "Expected a binary operator"); // bo (extelt V0, C), (extelt V1, C) --> extelt (bo V0, V1), C @@ -254,9 +254,9 @@ static bool foldExtractExtract(Instruction &I, const TargetTransformInfo &TTI) { } if (Pred != CmpInst::BAD_ICMP_PREDICATE) - foldExtExtCmp(Ext0, Ext1, I, TTI); + foldExtExtCmp(Ext0, Ext1, I); else - foldExtExtBinop(Ext0, Ext1, I, TTI); + foldExtExtBinop(Ext0, Ext1, I); return true; }