Skip to content

Commit 6a02c86

Browse files
committed
ignore oftype
1 parent d0c61d3 commit 6a02c86

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.12.159"
4+
version = "0.12.160"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/parse/add_compute.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ function add_compute!(
475475
return add_anon_func!(ls, var, fexpr, ex, position, mpref, elementbytes)
476476
# instr = instruction(first(ex.args))::Symbol
477477
instr = instruction!(ls, first(ex.args))::Instruction
478+
478479
args = @view(ex.args[2:end])
479480
if (instr.instr === :pow_fast || instr.instr === :(^)) && length(args) == 2
480481
arg1 = args[1]
@@ -495,6 +496,8 @@ function add_compute!(
495496
arg2num = Int(static(ex.args[3]))::Int
496497
return add_pow!(ls, var, args[1], arg2num, elementbytes, position)
497498
end
499+
elseif instr.instr === :oftype && length(args) == 2
500+
return getop(ls, args[2], elementbytes)
498501
end
499502
vparents = Operation[]
500503
deps = Symbol[]

0 commit comments

Comments
 (0)