Skip to content

Commit 7786d05

Browse files
committed
fix cost check for unknwon functions
1 parent e89f09e commit 7786d05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/lower_load.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function child_cost_untill_vectorized(op::Operation)
125125
for child children(op)
126126
if (!isvectorized(child) & iscompute(child))
127127
# FIXME: can double count
128-
c += COST[instruction(child).instr].scalar_reciprocal_throughput + child_cost_untill_vectorized(child)
128+
c += instruction_cost(instruction(child)).scalar_reciprocal_throughput + child_cost_untill_vectorized(child)
129129
end
130130
end
131131
c

0 commit comments

Comments
 (0)