mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[NFC] Fix variables used only for assert in GVN
llvm-svn: 315448
This commit is contained in:
parent
811fc0bbc5
commit
65b8521b19
@ -2398,14 +2398,14 @@ GVN::fillImplicitControlFlowInfo(ReversePostOrderTraversal<Function *> &RPOT) {
|
||||
// must be removed once isGuaranteedToTransferExecutionToSuccessor is fixed.
|
||||
if (isGuaranteedToTransferExecutionToSuccessor(I))
|
||||
return false;
|
||||
if (auto *LI = dyn_cast<LoadInst>(I)) {
|
||||
assert(LI->isVolatile() && "Non-volatile load should transfer execution"
|
||||
" to successor!");
|
||||
if (isa<LoadInst>(I)) {
|
||||
assert(cast<LoadInst>(I)->isVolatile() &&
|
||||
"Non-volatile load should transfer execution to successor!");
|
||||
return false;
|
||||
}
|
||||
if (auto *SI = dyn_cast<StoreInst>(I)) {
|
||||
assert(SI->isVolatile() && "Non-volatile store should transfer execution"
|
||||
" to successor!");
|
||||
if (isa<StoreInst>(I)) {
|
||||
assert(cast<StoreInst>(I)->isVolatile() &&
|
||||
"Non-volatile store should transfer execution to successor!");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user