forked from OSchip/llvm-project
[MemorySSA, BPF] Use isa instead of dyn_cast (NFC)
This commit is contained in:
parent
7bc76fd0ec
commit
b557c32ae9
|
@ -1779,8 +1779,8 @@ MemoryUseOrDef *MemorySSA::createNewAccess(Instruction *I,
|
|||
|
||||
bool Def, Use;
|
||||
if (Template) {
|
||||
Def = dyn_cast_or_null<MemoryDef>(Template) != nullptr;
|
||||
Use = dyn_cast_or_null<MemoryUse>(Template) != nullptr;
|
||||
Def = isa<MemoryDef>(Template);
|
||||
Use = isa<MemoryUse>(Template);
|
||||
#if !defined(NDEBUG)
|
||||
ModRefInfo ModRef = AAP->getModRefInfo(I, None);
|
||||
bool DefCheck, UseCheck;
|
||||
|
|
|
@ -221,7 +221,7 @@ bool BPFAdjustOptImpl::avoidSpeculation(Instruction &I) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!dyn_cast<LoadInst>(&I) && !dyn_cast<CallInst>(&I))
|
||||
if (!isa<LoadInst>(&I) && !isa<CallInst>(&I))
|
||||
return false;
|
||||
|
||||
// For:
|
||||
|
|
Loading…
Reference in New Issue