File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,22 @@ include("definitions/native.jl")
14
14
end
15
15
16
16
@testset " Compilation database" begin
17
- function sqexp (x:: Float64 )
18
- return exp (x)* exp (x)
17
+ @noinline inner (x) = x+ 1
18
+ function outer (x)
19
+ return inner (x)
19
20
end
20
21
21
- job, _ = native_job (sqexp , (Float64 ,))
22
+ job, _ = native_job (outer , (Int ,))
22
23
ir, meta = GPUCompiler. compile (:llvm , job)
23
24
24
- meth = only (methods (sqexp , (Float64 ,)))
25
+ meth = only (methods (outer , (Int ,)))
25
26
26
27
mis = filter (mi-> mi. def == meth, keys (meta. compiled))
27
28
@test length (mis) == 1
28
29
29
30
other_mis = filter (mi-> mi. def != meth, keys (meta. compiled))
30
31
@test length (other_mis) == 1
31
- @test only (other_mis). def in methods (Base . exp )
32
+ @test only (other_mis). def in methods (inner )
32
33
end
33
34
34
35
@testset " Advanced database" begin
You can’t perform that action at this time.
0 commit comments