diff options
author | Nikita Popov <npopov@redhat.com> | 2023-12-22 11:28:11 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-12-22 11:28:54 +0100 |
commit | 24e80d4cc5778fe4869badd34acbe1e7ded811d6 (patch) | |
tree | 70b150e841af3979cb123e16cb01eb8c68f802a4 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
parent | f7c3627338a2b98ccfac0312d47bb06d5a189c29 (diff) | |
download | llvm-24e80d4cc5778fe4869badd34acbe1e7ded811d6.zip llvm-24e80d4cc5778fe4869badd34acbe1e7ded811d6.tar.gz llvm-24e80d4cc5778fe4869badd34acbe1e7ded811d6.tar.bz2 |
[IndVars] Move "using namespace" to top-level scope (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp index 722ed03..2f2fa37 100644 --- a/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp @@ -27,6 +27,7 @@ #include "llvm/Transforms/Utils/ScalarEvolutionExpander.h" using namespace llvm; +using namespace llvm::PatternMatch; #define DEBUG_TYPE "indvars" @@ -786,8 +787,6 @@ bool SimplifyIndvar::strengthenOverflowingOperation(BinaryOperator *BO, /// otherwise. bool SimplifyIndvar::strengthenRightShift(BinaryOperator *BO, Instruction *IVOperand) { - using namespace llvm::PatternMatch; - if (BO->getOpcode() == Instruction::Shl) { bool Changed = false; ConstantRange IVRange = SE->getUnsignedRange(SE->getSCEV(IVOperand)); @@ -2011,8 +2010,6 @@ PHINode *WidenIV::createWideIV(SCEVExpander &Rewriter) { /// by looking at dominating conditions inside of the loop void WidenIV::calculatePostIncRange(Instruction *NarrowDef, Instruction *NarrowUser) { - using namespace llvm::PatternMatch; - Value *NarrowDefLHS; const APInt *NarrowDefRHS; if (!match(NarrowDef, m_NSWAdd(m_Value(NarrowDefLHS), |