Skip to content

Commit 691af33

Browse files
committed
Check for ifelse.
1 parent 1da2626 commit 691af33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/costs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Base.convert(::Type{Instruction}, instr::Symbol) = Instruction(instr)
253253
# instruction(f::Symbol, m) = f ∈ keys(COST) ? Instruction(f) : Instruction(m, f)
254254
# instruction(f::Symbol) = f ∈ keys(COST) ? Instruction(:LoopVectorization, f) : Instruction(Symbol(""), f)
255255
function instruction(f::Symbol)
256+
f === :ifelse && return Instruction(:LoopVectorization, :vifelse)
256257
# @assert f ∈ keys(COST)
257258
f keys(COST) ? Instruction(:LoopVectorization, f) : Instruction(Symbol(""), f)
258259
end

0 commit comments

Comments
 (0)