File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,5 @@ bool SILLoop::canDuplicate(SILInstruction *I) const {
82
82
}
83
83
84
84
void SILLoopInfo::verify () const {
85
- llvm::DenseSet<const SILLoop*> Loops;
86
- for (iterator I = begin (), E = end (); I != E; ++I) {
87
- assert (!(*I)->getParentLoop () && " Top-level loop has a parent!" );
88
- (*I)->verifyLoopNest (&Loops);
89
- }
90
-
91
- // We need access to the map for this.
92
- // Verify that blocks are mapped to valid loops.
93
- for (llvm::DenseMap<const SILBasicBlock *, SILLoop *>::const_iterator
94
- I = LI.getBlockMap ().begin (),
95
- E = LI.getBlockMap ().end ();
96
- I != E; ++I) {
97
- assert (Loops.count (I->second ) && " orphaned loop" );
98
- assert (I->second ->contains (I->first ) && " orphaned block" );
99
- }
85
+ LI.verify ();
100
86
}
You can’t perform that action at this time.
0 commit comments