[llvm] f6b217c - [LV] Remmove unused default argument to isLegalGatherOrScatter [nfc]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 11:03:54 PDT 2023


Author: Philip Reames
Date: 2023-04-03T11:03:35-07:00
New Revision: f6b217c7cbda809236f69a079a34134d8a6592ca

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

LOG: [LV] Remmove unused default argument to isLegalGatherOrScatter [nfc]

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 21858cc1705b6..0b369f9c70e56 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1470,8 +1470,7 @@ class LoopVectorizationCostModel {
 
   /// Returns true if the target machine can represent \p V as a masked gather
   /// or scatter operation.
-  bool isLegalGatherOrScatter(Value *V,
-                              ElementCount VF = ElementCount::getFixed(1)) {
+  bool isLegalGatherOrScatter(Value *V, ElementCount VF) {
     bool LI = isa<LoadInst>(V);
     bool SI = isa<StoreInst>(V);
     if (!LI && !SI)


        


More information about the llvm-commits mailing list