Skip to content

Commit f168175

Browse files
committed
[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.
1 parent 7ccdc59 commit f168175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define DEBUG_TYPE "vplan"
2626

2727
using namespace llvm;
28+
using namespace VPlanPatternMatch;
2829

2930
namespace {
3031
// Class that is used to build the plain CFG for the incoming IR.
@@ -427,7 +428,6 @@ static void createLoopRegion(VPlan &Plan, VPBlockBase *HeaderVPB) {
427428
static void addCanonicalIVRecipes(VPlan &Plan, VPBasicBlock *HeaderVPBB,
428429
VPBasicBlock *LatchVPBB, Type *IdxTy,
429430
DebugLoc DL) {
430-
using namespace VPlanPatternMatch;
431431
Value *StartIdx = ConstantInt::get(IdxTy, 0);
432432
auto *StartV = Plan.getOrAddLiveIn(StartIdx);
433433

0 commit comments

Comments
 (0)