- arch_env_add_irn_handler(env->arch_env, &firm_irn_handler);
- arch_env_add_irn_handler(env->arch_env,
- be_node_get_irn_handler(env->node_factory));
+ /* Register the irn handler of the architecture */
+ if (isa->irn_handler)
+ arch_env_add_irn_handler(env->arch_env, isa->irn_handler);
+
+ /*
+ * Register the node handler of the back end infrastructure.
+ * This irn handler takes care of the platform independent
+ * spill, reload and perm nodes.
+ */
+ arch_env_add_irn_handler(env->arch_env, be_node_get_irn_handler(env->node_factory));