-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance problem in root coloring
By originally using a vector, rather than a set, neighbors would end up getting duplicated in the list. This blew up the size of the list, causing excessive performance problems in the ColorRoots function.
- Loading branch information
Showing
4 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# RUN: julia --startup-file=no %s | opt -load libjulia.so -LateLowerGCFrame -S - | FileCheck %s | ||
|
||
println(""" | ||
%jl_value_t = type opaque | ||
declare %jl_value_t addrspace(10)* @alloc() | ||
declare void @one_arg_boxed(%jl_value_t addrspace(10)*) | ||
declare %jl_value_t*** @jl_get_ptls_states() | ||
define void @stress(i64 %a, i64 %b) { | ||
%ptls = call %jl_value_t*** @jl_get_ptls_states() | ||
""") | ||
|
||
# CHECK: %gcframe = alloca %jl_value_t addrspace(10)*, i32 10002 | ||
for i = 1:10000 | ||
println("\t%arg$i = call %jl_value_t addrspace(10)* @alloc()") | ||
end | ||
|
||
for i = 1:10000 | ||
println("\tcall void @one_arg_boxed(%jl_value_t addrspace(10)* %arg$i)") | ||
end | ||
|
||
println(""" | ||
ret void | ||
} | ||
""") |