File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
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 (
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
You can’t perform that action at this time.
0 commit comments