Skip to content

Commit 9a38042

Browse files
committed
Make notunroll test robust against loop-rotation
1 parent 66bf907 commit 9a38042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/llvmpasses/loopinfo.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ end
104104
end
105105

106106
# FINAL-LABEL: @julia_notunroll
107-
function notunroll(J, I)
107+
@eval function notunroll(J, I)
108108
for i in 1:10
109109
for j in J
110110
1 <= j <= I && continue
@@ -113,6 +113,7 @@ function notunroll(J, I)
113113
# FINAL: call void @j_iteration
114114
# FINAL-NOT: call void @j_iteration
115115
end
116+
$(Expr(:loopinfo, (Symbol("llvm.loop.unroll.disable"),)))
116117
end
117118
end
118119

0 commit comments

Comments
 (0)