summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-10-30 23:52:53 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-10-30 23:52:53 +0000
commitb4830a84b96eb852ad4e97ad0cc22a1ea93da637 (patch)
treebb4c9f4575ce36206a766fae4e00963bb54cad65 /llvm/lib/Analysis
parentb53021d71f0c14cd116ce372bd03d07ab996c28d (diff)
downloadbcm5719-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.cpp8
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(),
OpenPOWER on IntegriCloud