mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
[MemDep] Cleanup return after else & use auto
. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dcc5fa654c
commit
82f1a7fc01
@ -310,11 +310,11 @@ unsigned MemoryDependenceResults::getLoadLoadClobberFullWidthSize(
|
||||
}
|
||||
|
||||
static bool isVolatile(Instruction *Inst) {
|
||||
if (LoadInst *LI = dyn_cast<LoadInst>(Inst))
|
||||
if (auto *LI = dyn_cast<LoadInst>(Inst))
|
||||
return LI->isVolatile();
|
||||
else if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
|
||||
if (auto *SI = dyn_cast<StoreInst>(Inst))
|
||||
return SI->isVolatile();
|
||||
else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(Inst))
|
||||
if (auto *AI = dyn_cast<AtomicCmpXchgInst>(Inst))
|
||||
return AI->isVolatile();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user