13
13
#include " llvm/Analysis/ScalarEvolutionExpressions.h"
14
14
15
15
using namespace llvm ;
16
+ using namespace llvm ::VPlanPatternMatch;
16
17
17
18
bool vputils::onlyFirstLaneUsed (const VPValue *Def) {
18
19
return all_of (Def->users (),
@@ -63,7 +64,6 @@ bool vputils::isHeaderMask(const VPValue *V, VPlan &Plan) {
63
64
};
64
65
65
66
VPValue *A, *B;
66
- using namespace VPlanPatternMatch ;
67
67
68
68
if (match (V, m_ActiveLaneMask (m_VPValue (A), m_VPValue (B), m_One ())))
69
69
return B == Plan.getTripCount () &&
@@ -90,7 +90,6 @@ const SCEV *vputils::getSCEVExprForVPValue(VPValue *V, ScalarEvolution &SE) {
90
90
}
91
91
92
92
bool vputils::isUniformAcrossVFsAndUFs (VPValue *V) {
93
- using namespace VPlanPatternMatch ;
94
93
// Live-ins are uniform.
95
94
if (V->isLiveIn ())
96
95
return true ;
@@ -159,7 +158,6 @@ std::optional<VPValue *>
159
158
vputils::getRecipesForUncountableExit (VPlan &Plan,
160
159
SmallVectorImpl<VPRecipeBase *> &Recipes,
161
160
SmallVectorImpl<VPRecipeBase *> &GEPs) {
162
- using namespace llvm ::VPlanPatternMatch;
163
161
// Given a VPlan like the following (just including the recipes contributing
164
162
// to loop control exiting here, not the actual work), we're looking to match
165
163
// the recipes contributing to the uncountable exit condition comparison
0 commit comments