git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311838
91177308-0d34-0410-b5e6-
96231b3b80d8
}
}
- } 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;
}
}
- } 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 =