Verify critical edges when -sil-verify-all is enabled

This commit is contained in:
Meghana Gupta
2021-03-03 23:45:56 -08:00
parent b9f55fdb03
commit 1f89d9ff89
4 changed files with 10 additions and 5 deletions

View File

@@ -1032,7 +1032,8 @@ bool MemoryToRegisters::promoteSingleAllocation(AllocStackInst *alloc,
bool MemoryToRegisters::run() {
bool Changed = false;
F.verifyCriticalEdges();
if (F.getModule().getOptions().VerifyAll)
F.verifyCriticalEdges();
// Compute dominator tree node levels for the function.
DomTreeLevelMap DomTreeLevels;