[llvm] f168175 - [VPlan] Move using namespace VPlanPatternMatch to top level (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 13 11:23:03 PDT 2025


Author: Florian Hahn
Date: 2025-07-13T19:22:13+01:00
New Revision: f168175d01247af53e3ab243486065facc18fa49

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

LOG: [VPlan] Move using namespace VPlanPatternMatch to top level (NFC).

VPlanConstruction.cpp doesn't use IR pattern matching, so using
VPlanPatternMatch can be moved to the top-level, to slightly reduce the
diff in follow-up changes.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
index 37e15326e01f9..52eecb000d0c2 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
@@ -25,6 +25,7 @@
 #define DEBUG_TYPE "vplan"
 
 using namespace llvm;
+using namespace VPlanPatternMatch;
 
 namespace {
 // Class that is used to build the plain CFG for the incoming IR.
@@ -427,7 +428,6 @@ static void createLoopRegion(VPlan &Plan, VPBlockBase *HeaderVPB) {
 static void addCanonicalIVRecipes(VPlan &Plan, VPBasicBlock *HeaderVPBB,
                                   VPBasicBlock *LatchVPBB, Type *IdxTy,
                                   DebugLoc DL) {
-  using namespace VPlanPatternMatch;
   Value *StartIdx = ConstantInt::get(IdxTy, 0);
   auto *StartV = Plan.getOrAddLiveIn(StartIdx);
 


        


More information about the llvm-commits mailing list