[llvm] r291328 - [NewGVN] Prefer auto over explicit type. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 18:05:50 PST 2017
Author: davide
Date: Fri Jan 6 20:05:50 2017
New Revision: 291328
URL: http://llvm.org/viewvc/llvm-project?rev=291328&view=rev
Log:
[NewGVN] Prefer auto over explicit type. NFCI.
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=291328&r1=291327&r2=291328&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Fri Jan 6 20:05:50 2017
@@ -849,7 +849,7 @@ const Expression *NewGVN::performSymboli
// common value unless it dominates the phi block.
if (HasUndef) {
// Only have to check for instructions
- if (Instruction *AllSameInst = dyn_cast<Instruction>(AllSameValue))
+ if (auto *AllSameInst = dyn_cast<Instruction>(AllSameValue))
if (!DT->dominates(AllSameInst, I))
return E;
}
More information about the llvm-commits
mailing list