Skip to content

Commit 24e80d4

Browse files
committed
[IndVars] Move "using namespace" to top-level scope (NFC)
1 parent f7c3627 commit 24e80d4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Transforms/Utils/SimplifyIndVar.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "llvm/Transforms/Utils/ScalarEvolutionExpander.h"
2828

2929
using namespace llvm;
30+
using namespace llvm::PatternMatch;
3031

3132
#define DEBUG_TYPE "indvars"
3233

@@ -786,8 +787,6 @@ bool SimplifyIndvar::strengthenOverflowingOperation(BinaryOperator *BO,
786787
/// otherwise.
787788
bool SimplifyIndvar::strengthenRightShift(BinaryOperator *BO,
788789
Instruction *IVOperand) {
789-
using namespace llvm::PatternMatch;
790-
791790
if (BO->getOpcode() == Instruction::Shl) {
792791
bool Changed = false;
793792
ConstantRange IVRange = SE->getUnsignedRange(SE->getSCEV(IVOperand));
@@ -2011,8 +2010,6 @@ PHINode *WidenIV::createWideIV(SCEVExpander &Rewriter) {
20112010
/// by looking at dominating conditions inside of the loop
20122011
void WidenIV::calculatePostIncRange(Instruction *NarrowDef,
20132012
Instruction *NarrowUser) {
2014-
using namespace llvm::PatternMatch;
2015-
20162013
Value *NarrowDefLHS;
20172014
const APInt *NarrowDefRHS;
20182015
if (!match(NarrowDef, m_NSWAdd(m_Value(NarrowDefLHS),

0 commit comments

Comments
 (0)