GCC with patches for OS216
Revisión | 75e06b71300cd907fa4c40f83563bd0151a6d691 (tree) |
---|---|
Tiempo | 2018-03-21 03:07:57 |
Autor | Aldy Hernandez <aldyh@gcc....> |
Commiter | Aldy Hernandez |
Fix fallout from merge with Aldy's threader branch.
From-SVN: r258690
@@ -98,19 +98,18 @@ gori_map::gori_map () | ||
98 | 98 | |
99 | 99 | gori_map::~gori_map () |
100 | 100 | { |
101 | - unsigned x; | |
102 | - int bb; | |
103 | - for (bb = 0; bb < last_basic_block_for_fn (cfun); ++bb) | |
101 | + unsigned x, bb; | |
102 | + for (bb = 0; bb < outgoing.length (); ++bb) | |
104 | 103 | if (outgoing[bb]) |
105 | 104 | BITMAP_FREE (outgoing[bb]); |
106 | 105 | outgoing.release (); |
107 | 106 | |
108 | - for (bb = 0; bb < last_basic_block_for_fn (cfun); ++bb) | |
107 | + for (bb = 0; bb < incoming.length (); ++bb) | |
109 | 108 | if (incoming[bb]) |
110 | 109 | BITMAP_FREE (incoming[bb]); |
111 | 110 | incoming.release (); |
112 | 111 | |
113 | - for (x = 0; x < num_ssa_names; ++x) | |
112 | + for (x = 0; x < def_chain.length (); ++x) | |
114 | 113 | if (def_chain[x]) |
115 | 114 | BITMAP_FREE (def_chain[x]); |
116 | 115 | def_chain.release (); |
@@ -281,9 +280,11 @@ gori_map::dump(FILE *f, basic_block bb) | ||
281 | 280 | return; |
282 | 281 | } |
283 | 282 | |
284 | - for (x = 1; x< num_ssa_names; x++) | |
283 | + for (x = 1; x < num_ssa_names; x++) | |
285 | 284 | { |
286 | 285 | tree name = ssa_name (x); |
286 | + if (!name) | |
287 | + continue; | |
287 | 288 | gimple *stmt = SSA_NAME_DEF_STMT (name); |
288 | 289 | if (stmt && gimple_bb (stmt) == bb && def_chain[x] && |
289 | 290 | !bitmap_empty_p (def_chain[x])) |
@@ -707,6 +708,12 @@ block_ranger::get_derived_range_stmt (range_stmt& stmt, tree name, basic_block b | ||
707 | 708 | #endif |
708 | 709 | |
709 | 710 | |
711 | +tree | |
712 | +block_ranger::single_import (tree name) | |
713 | +{ | |
714 | + return gori->single_import (name); | |
715 | +} | |
716 | + | |
710 | 717 | bool |
711 | 718 | block_ranger::range_p (basic_block bb, tree name) |
712 | 719 | { |
@@ -59,6 +59,7 @@ public: | ||
59 | 59 | bool range_of_def (irange& r, gimple *g, tree name, |
60 | 60 | const irange& range_for_name); |
61 | 61 | |
62 | + tree single_import (tree name); | |
62 | 63 | void dump (FILE *f); |
63 | 64 | void exercise (FILE *f); |
64 | 65 | }; |