Commit 478fdb37 authored by Michael Beck's avatar Michael Beck
Browse files

Add shortcut to speed up gc_irgs()

[r8306]
parent 7e35aef8
......@@ -64,6 +64,11 @@ void gc_irgs(int n_keep, entity ** keep_arr) {
if (!get_opt_dead_method_elimination()) return;
if (n_keep >= get_irp_n_irgs()) {
/* Shortcut. Obviously we have to keep all methods. */
return;
}
/* Mark entities that are alive. */
if (n_keep > 0) {
entity ** marked = NEW_ARR_F(entity *, n_keep);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment