}
}
else if (get_opt_unreachable_code() &&
- (n != current_ir_graph->start_block) &&
- (n != current_ir_graph->end_block) ) {
+ (n != get_irg_start_block(current_ir_graph)) &&
+ (n != get_irg_end_block(current_ir_graph)) ) {
int i;
/* If all inputs are dead, this block is dead too, except if it is
/* @@@ fliegt 'raus, sollte aber doch immer wahr sein!!!
assert(get_irn_arity(block) == n_preds && "phi in wrong block!"); */
if ((is_Block_dead(block)) || /* Control dead */
- (block == current_ir_graph->start_block)) /* There should be no Phi nodes */
- return new_Bad(); /* in the Start Block. */
+ (block == get_irg_start_block(current_ir_graph))) /* There should be no Phi nodes */
+ return new_Bad(); /* in the Start Block. */
if (n_preds == 0) return n; /* Phi of dead Region without predecessors. */
/*
* the first block has the initial exec as cfg predecessor
*/
- if (node != current_ir_graph->start_block) {
+ if (node != get_irg_start_block(current_ir_graph)) {
for (i = 0; i < n_pred; ++i) {
if (get_Block_cfgpred(node, i) == data->proj_X) {
data->block = node;
phis[0] = new_r_Phi(irg, block, n_tail_calls + 1, in, mode_M);
- /* build the data phi's */
+ /* build the data Phi's */
if (n_params > 0) {
ir_node *calls;
+ ir_node *args;
NEW_ARR_A(ir_node **, call_params, n_tail_calls);
++i;
}
- /* build new projs and Phi's */
+ /* build new Proj's and Phi's */
+ args = get_irg_args(irg);
for (i = 0; i < n_params; ++i) {
ir_mode *mode = get_type_mode(get_method_param_type(method_tp, i));
- in[0] = new_r_Proj(irg, block, irg->args, mode, i);
+ in[0] = new_r_Proj(irg, block, args, mode, i);
for (j = 0; j < n_tail_calls; ++j)
in[j + 1] = call_params[j][i];