Skip to content

Commit 88c24aa

Browse files
committed
Revert "Apply suggestions from code review"
This reverts commit 3e7f0bf.
1 parent 3e7f0bf commit 88c24aa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/nditeration.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ end
8888
Assume that the condition `cond` is true. This is a hint to the compiler, possibly enabling
8989
it to optimize more aggressively.
9090
"""
91-
@inline assume(cond::Bool) = Base.llvmcall(
92-
(
93-
"""
91+
@inline assume(cond::Bool) = Base.llvmcall(("""
9492
declare void @llvm.assume(i1)
9593
9694
define void @entry(i8) #0 {
@@ -99,11 +97,9 @@ it to optimize more aggressively.
9997
ret void
10098
}
10199
102-
attributes #0 = { alwaysinline }""", "entry",
103-
),
104-
Nothing, Tuple{Bool}, cond
105-
)
106-
return ntuple(Val(ndims(CI))) do I
100+
attributes #0 = { alwaysinline }""", "entry"),
101+
Nothing, Tuple{Bool}, cond)
102+
107103
@inline function assume_nonzero(CI::CartesianIndices)
108104
ntuple(Val(ndims(CI))) do I
109105
Base.@_inline_meta

0 commit comments

Comments
 (0)