diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-10-30 23:52:53 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-10-30 23:52:53 +0000 |
commit | b4830a84b96eb852ad4e97ad0cc22a1ea93da637 (patch) | |
tree | bb4c9f4575ce36206a766fae4e00963bb54cad65 /llvm/lib/Analysis | |
parent | b53021d71f0c14cd116ce372bd03d07ab996c28d (diff) | |
download | bcm5719-llvm-b4830a84b96eb852ad4e97ad0cc22a1ea93da637.tar.gz bcm5719-llvm-b4830a84b96eb852ad4e97ad0cc22a1ea93da637.zip |
[SCEV] Use auto for consistency with an upcoming change; NFC
llvm-svn: 285528
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index f03051ddb4a..fd8cec54826 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -471,16 +471,16 @@ static int CompareValueComplexity(const LoopInfo *const LI, Value *LV, return (int)LID - (int)RID; // Sort arguments by their position. - if (const Argument *LA = dyn_cast<Argument>(LV)) { - const Argument *RA = cast<Argument>(RV); + if (const auto *LA = dyn_cast<Argument>(LV)) { + const auto *RA = cast<Argument>(RV); unsigned LArgNo = LA->getArgNo(), RArgNo = RA->getArgNo(); return (int)LArgNo - (int)RArgNo; } // For instructions, compare their loop depth, and their operand count. This // is pretty loose. - if (const Instruction *LInst = dyn_cast<Instruction>(LV)) { - const Instruction *RInst = cast<Instruction>(RV); + if (const auto *LInst = dyn_cast<Instruction>(LV)) { + const auto *RInst = cast<Instruction>(RV); // Compare loop depths. const BasicBlock *LParent = LInst->getParent(), |