diff options
| author | Davide Italiano <davide@freebsd.org> | 2017-08-26 22:31:10 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2017-08-26 22:31:10 +0000 |
| commit | 9bdccb37d5aafc18cf9da1267f4f59d271a4f3b2 (patch) | |
| tree | 80c5e8729b52e73287e7fc3588da4d67551ac5bb /llvm/lib/Transforms | |
| parent | a088362e88861066f79f31197cd39842c94aa723 (diff) | |
| download | bcm5719-llvm-9bdccb37d5aafc18cf9da1267f4f59d271a4f3b2.tar.gz bcm5719-llvm-9bdccb37d5aafc18cf9da1267f4f59d271a4f3b2.zip | |
[NewGVN] Use `auto` when the type is obvious NFCI.
llvm-svn: 311838
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index d260a15707e..40e671fc108 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -1302,7 +1302,7 @@ NewGVN::performSymbolicLoadCoercion(Type *LoadType, Value *LoadPtr, } } - } else if (LoadInst *DepLI = dyn_cast<LoadInst>(DepInst)) { + } else if (auto *DepLI = dyn_cast<LoadInst>(DepInst)) { // Can't forward from non-atomic to atomic without violating memory model. if (LI->isAtomic() > DepLI->isAtomic()) return nullptr; @@ -1318,7 +1318,7 @@ NewGVN::performSymbolicLoadCoercion(Type *LoadType, Value *LoadPtr, } } - } else if (MemIntrinsic *DepMI = dyn_cast<MemIntrinsic>(DepInst)) { + } else if (auto *DepMI = dyn_cast<MemIntrinsic>(DepInst)) { int Offset = analyzeLoadFromClobberingMemInst(LoadType, LoadPtr, DepMI, DL); if (Offset >= 0) { if (auto *PossibleConstant = |

