(block, recurse)
| 6894 | return false; |
| 6895 | } |
| 6896 | sweep(block, recurse) { |
| 6897 | const nodes = Array.from(block.nodes()).reverse(); |
| 6898 | for (const node of nodes) { |
| 6899 | this.removeDeadBlockOutputs(node); |
| 6900 | this.removeDeadLoopOutputs(node); |
| 6901 | if (recurse) { |
| 6902 | for (const block of node.blocks()) { |
| 6903 | this.sweep(block, true); |
| 6904 | } |
| 6905 | } |
| 6906 | if (!this._marked.has(node) && !node.hasUses()) { |
| 6907 | node.destroy(); |
| 6908 | } |
| 6909 | } |
| 6910 | } |
| 6911 | hasUntrackedMutation(node) { |
| 6912 | if (!this._useAliasDb) { |
| 6913 | if (node.kind() === 'prim::SetAttr') { |
no test coverage detected