[llvm] r290499 - [NewGVN] Prefer `auto` to explicit type when the latter is obvious.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 24 09:17:21 PST 2016
Author: davide
Date: Sat Dec 24 11:17:21 2016
New Revision: 290499
URL: http://llvm.org/viewvc/llvm-project?rev=290499&view=rev
Log:
[NewGVN] Prefer `auto` to explicit type when the latter is obvious.
Modified:
llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=290499&r1=290498&r2=290499&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Sat Dec 24 11:17:21 2016
@@ -1045,7 +1045,7 @@ void NewGVN::performCongruenceFinding(Va
}
}
markUsersTouched(V);
- if (Instruction *I = dyn_cast<Instruction>(V))
+ if (auto *I = dyn_cast<Instruction>(V))
if (MemoryAccess *MA = MSSA->getMemoryAccess(I))
markMemoryUsersTouched(MA);
}
More information about the llvm-commits
mailing list