Skip to content

Commit 5626427

Browse files
KenoIan Atol
authored andcommitted
More aggressive SROA considering uses of new_new_nodes
1 parent ce26c0b commit 5626427

File tree

4 files changed

+279
-115
lines changed

4 files changed

+279
-115
lines changed

base/compiler/ssair/inlining.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ function ir_inline_item!(compact::IncrementalCompact, idx::Int, argexprs::Vector
371371
stmt′ = ssa_substitute!(idx′, stmt′, argexprs, sig, sparam_vals, linetable_offset, boundscheck, compact)
372372
if isa(stmt′, ReturnNode)
373373
val = stmt′.val
374-
isa(val, SSAValue) && (compact.used_ssas[val.id] += 1)
375374
return_value = SSAValue(idx′)
376375
inline_compact[idx′] = val
377376
inline_compact.result[idx′][:type] =
@@ -428,13 +427,6 @@ function ir_inline_item!(compact::IncrementalCompact, idx::Int, argexprs::Vector
428427
just_fixup!(inline_compact)
429428
compact.result_idx = inline_compact.result_idx
430429
compact.active_result_bb = inline_compact.active_result_bb
431-
for i = 1:length(pn.values)
432-
isassigned(pn.values, i) || continue
433-
v = pn.values[i]
434-
if isa(v, SSAValue)
435-
compact.used_ssas[v.id] += 1
436-
end
437-
end
438430
if length(pn.edges) == 1
439431
return_value = pn.values[1]
440432
else

0 commit comments

Comments
 (0)