File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 8888Assume that the condition `cond` is true. This is a hint to the compiler, possibly enabling
8989it to optimize more aggressively.
9090"""
91- @inline assume (cond:: Bool ) = Base. llvmcall (("""
91+ @inline assume (cond:: Bool ) = Base. llvmcall (
92+ (
93+ """
9294 declare void @llvm.assume(i1)
9395
9496 define void @entry(i8) #0 {
@@ -97,9 +99,11 @@ it to optimize more aggressively.
9799 ret void
98100 }
99101
100- attributes #0 = { alwaysinline }""" , " entry" ),
101- Nothing, Tuple{Bool}, cond)
102-
102+ attributes #0 = { alwaysinline }""" , " entry" ,
103+ ),
104+ Nothing, Tuple{Bool}, cond
105+ )
106+ return ntuple (Val (ndims (CI))) do I
103107@inline function assume_nonzero (CI:: CartesianIndices )
104108 ntuple (Val (ndims (CI))) do I
105109 Base. @_inline_meta
You can’t perform that action at this time.
0 commit comments