File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 802
802
function lsexpr (ls:: LoopSet , q)
803
803
Expr (:block , ls. preamble, q)
804
804
end
805
-
805
+ const ISZEN1 = Sys . CPU_NAME === " znver1 "
806
806
function calc_Ureduct (ls:: LoopSet , us:: UnrollSpecification )
807
807
@unpack u₁loopnum, u₁, u₂, vectorizedloopnum = us
808
808
if iszero (length (ls. outer_reductions))
@@ -811,7 +811,7 @@ function calc_Ureduct(ls::LoopSet, us::UnrollSpecification)
811
811
loopisstatic = isstaticloop (getloop (ls, names (ls)[u₁loopnum]))
812
812
loopisstatic &= ((vectorizedloopnum != u₁loopnum) | (! iszero (ls. vector_width[])))
813
813
# loopisstatic ? u₁ : min(u₁, 4) # much worse than the other two options, don't use this one
814
- if Sys . CPU_NAME === " znver1 "
814
+ if ISZEN1
815
815
loopisstatic ? u₁ : 1
816
816
else
817
817
loopisstatic ? u₁ : (u₁ ≥ 4 ? 2 : 1 )
You can’t perform that action at this time.
0 commit comments