Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -496,15 +496,11 @@ function propagateNonNull(
registry: PropertyPathRegistry,
): void {
const blockSuccessors = new Map<BlockId, Set<BlockId>>();
const terminalPreds = new Set<BlockId>();

for (const [blockId, block] of fn.body.blocks) {
for (const pred of block.preds) {
getOrInsertDefault(blockSuccessors, pred, new Set()).add(blockId);
}
if (block.terminal.kind === 'throw' || block.terminal.kind === 'return') {
terminalPreds.add(blockId);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,12 @@ export function alignReactiveScopesToBlockScopesHIR(fn: HIRFunction): void {
const activeScopes = new Set<ReactiveScope>();
const seen = new Set<ReactiveScope>();
const valueBlockNodes = new Map<BlockId, ValueBlockNode>();
const placeScopes = new Map<Place, ReactiveScope>();

function recordPlace(
id: InstructionId,
place: Place,
node: ValueBlockNode | null,
): void {
if (place.identifier.scope !== null) {
placeScopes.set(place, place.identifier.scope);
}

const scope = getPlaceScope(id, place);
if (scope == null) {
return;
Expand Down
Loading