File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1422,14 +1422,12 @@ void NewGVN::verifyMemoryCongruency() {
1422
1422
continue ;
1423
1423
if (auto *FirstMUD = dyn_cast<MemoryUseOrDef>(KV.first )) {
1424
1424
auto *SecondMUD = dyn_cast<MemoryUseOrDef>(KV.second );
1425
- if (FirstMUD && SecondMUD) {
1426
- auto *FirstInst = FirstMUD->getMemoryInst ();
1427
- auto *SecondInst = SecondMUD->getMemoryInst ();
1425
+ if (FirstMUD && SecondMUD)
1428
1426
assert (
1429
- ValueToClass.lookup (FirstInst) == ValueToClass.lookup (SecondInst) &&
1427
+ ValueToClass.lookup (FirstMUD->getMemoryInst ()) ==
1428
+ ValueToClass.lookup (SecondMUD->getMemoryInst ()) &&
1430
1429
" The instructions for these memory operations should have been in "
1431
1430
" the same congruence class" );
1432
- }
1433
1431
} else if (auto *FirstMP = dyn_cast<MemoryPhi>(KV.first )) {
1434
1432
1435
1433
// We can only sanely verify that MemoryDefs in the operand list all have
You can’t perform that action at this time.
0 commit comments