mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Verify critical edges when -sil-verify-all is enabled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user