Mercurial > hg > CbC > CbC_gcc
comparison gcc/ipa-inline.c @ 124:c3a50d7877e8
fix ipa-inline.c
author | mir3636 |
---|---|
date | Sat, 31 Mar 2018 17:18:55 +0900 |
parents | ab229f40eab2 |
children | d34655255c78 |
comparison
equal
deleted
inserted
replaced
123:ab229f40eab2 | 124:c3a50d7877e8 |
---|---|
2178 hash_set<cgraph_node *> *callers) | 2178 hash_set<cgraph_node *> *callers) |
2179 { | 2179 { |
2180 int *num_calls = (int *)data; | 2180 int *num_calls = (int *)data; |
2181 bool callee_removed = false; | 2181 bool callee_removed = false; |
2182 #ifndef noCbC | 2182 #ifndef noCbC |
2183 while (node->callers && !node->global.inlined_to && !node->callers->call_stmt->vdef) | 2183 bool tail_call_f = false; |
2184 if (node->callees) { | |
2185 if (node->callees->call_stmt) { | |
2186 if (node->callees->call_stmt->vdef) | |
2187 tail_call_f = gimple_call_tail_p (as_a <gcall *> (node->callees->call_stmt->vdef->ssa_name.def_stmt)); | |
2188 } | |
2189 } | |
2190 while (node->callers && !node->global.inlined_to && !tail_call_f) | |
2184 { | 2191 { |
2185 #else | 2192 #else |
2186 while (node->callers && !node->global.inlined_to) | 2193 while (node->callers && !node->global.inlined_to) |
2187 { | 2194 { |
2188 #endif | 2195 #endif |