Skip to content

Commit 26d30bc

Browse files
committed
move gesp_cost_offset's multiplication from prepreamble into preamble.
1 parent 6f8557c commit 26d30bc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
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.87"
4+
version = "0.12.88"
55

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

src/LoopVectorization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module LoopVectorization
22

3-
using Static: StaticInt, gt
3+
using Static: StaticInt, gt, static
44
using VectorizationBase, SLEEFPirates, UnPack, OffsetArrays
55
using VectorizationBase:
66
mask, MM, AbstractMask, data, grouped_strided_pointer, AbstractSIMD,
@@ -54,7 +54,7 @@ const Static = StaticInt
5454
using Requires
5555

5656

57-
export LowDimArray, stridedpointer, indices,
57+
export LowDimArray, stridedpointer, indices, static,
5858
@avx, @avxt, @turbo, @tturbo, *ˡ, _turbo_!,
5959
vmap, vmap!, vmapt, vmapt!, vmapnt, vmapnt!, vmapntt, vmapntt!,
6060
tanh_fast, sigmoid_fast,

src/parse/memory_ops_common.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function extract_array_symbol_from_ref!(ls::LoopSet, ex::Expr, offset1::Int)::Sy
1111
return ar
1212
elseif isa(ar, Expr) && (ar.head === :(.) || ar.head === :ref)
1313
s = dottosym(ar)
14+
# pushpreamble!(ls, Expr(:(=), s, ar))
1415
pushprepreamble!(ls, Expr(:(=), s, ar))
1516
return s
1617
else
@@ -97,8 +98,10 @@ function gesp_const_offset!(ls::LoopSet, vptrarray::Symbol, ninds::Int, indices:
9798
if isone(mlt)
9899
subset_vptr!(ls, vptrarray, ninds, sym, indices, loopedindex, D)
99100
else
101+
# want same name for arrays to be given the same name if possible
100102
mltsym = Symbol(sym, "##multiplied##by##", mlt)
101-
pushprepreamble!(ls, Expr(:(=), mltsym, Expr(:call, :(*), mlt, sym))) # want same name for arrays to be given the same name if possible
103+
pushpreamble!(ls, Expr(:(=), mltsym, Expr(:call, :(*), mlt, sym)))
104+
# pushprepreamble!(ls, Expr(:(=), mltsym, Expr(:call, :(*), mlt, sym)))
102105
subset_vptr!(ls, vptrarray, ninds, mltsym, indices, loopedindex, D)
103106
end
104107
end

0 commit comments

Comments
 (0)