[llvm] 039ff29 - [VectorCombine] remove unused parameters; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 16:16:17 PDT 2020


Author: Sanjay Patel
Date: 2020-06-11T19:15:03-04:00
New Revision: 039ff29ef6b51c80dd5dbd00dda3515ef9e1558a

URL: https://github.com/llvm/llvm-project/commit/039ff29ef6b51c80dd5dbd00dda3515ef9e1558a
DIFF: https://github.com/llvm/llvm-project/commit/039ff29ef6b51c80dd5dbd00dda3515ef9e1558a.diff

LOG: [VectorCombine] remove unused parameters; NFC

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Removed: 
    


################################################################################
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<CmpInst>(&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<BinaryOperator>(&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;
 }


        


More information about the llvm-commits mailing list