Files
swift-mirror/lib/SILOptimizer/Transforms
Erik Eckstein c180d1363e SIL: simplify deleting instruction while iterating over instructions.
Add `deletableInstructions()` and `reverseDeletableInstructions()` in SILBasicBlock.
It allows deleting instructions while iterating over all instructions of the block.
This is a replacement for `InstructionDeleter::updatingRange()`.
It's a simpler implementation than the existing `UpdatingListIterator` and `UpdatingInstructionIteratorRegistry`, because it just needs to keep the prev/next pointers for "deleted" instructions instead of the iterator-registration machinery.
It's also safer, because it doesn't require to delete instructions via a specific instance of an InstructionDeleter (which can be missed easily).
2022-12-12 19:08:54 +01:00
..
2022-10-03 18:31:33 -04:00
2022-10-03 18:31:33 -04:00
2022-10-03 18:31:33 -04:00
2022-10-03 18:31:33 -04:00
2022-11-21 19:44:24 +01:00
2022-10-03 18:31:33 -04:00