Commit e74a0c38 authored by Matthias Braun's avatar Matthias Braun
Browse files

assure no tuples immediately before transformation

No need to do it in backend preparation phase, if some backends destroy
the property again before transformation.
parent e8f6d823
......@@ -311,6 +311,9 @@ static void TEMPLATE_register_transformers(void)
*/
void TEMPLATE_transform_graph(ir_graph *irg)
{
assure_irg_properties(irg, IR_GRAPH_PROPERTY_NO_TUPLES
| IR_GRAPH_PROPERTY_NO_BADS);
gp_regs_mode = TEMPLATE_reg_classes[CLASS_TEMPLATE_gp].mode;
TEMPLATE_register_transformers();
......
......@@ -11,7 +11,6 @@
#include "irgraph_t.h"
#include "irmode_t.h"
#include "irgmod.h"
#include "iredges.h"
#include "ircons.h"
#include "iropt_t.h"
#include "error.h"
......@@ -538,6 +537,9 @@ static void amd64_register_transformers(void)
void amd64_transform_graph(ir_graph *irg)
{
assure_irg_properties(irg, IR_GRAPH_PROPERTY_NO_TUPLES
| IR_GRAPH_PROPERTY_NO_BADS);
amd64_register_transformers();
mode_gp = mode_Lu;
be_transform_graph(irg, NULL);
......
......@@ -1893,6 +1893,9 @@ static void arm_init_fpa_immediate(void)
*/
void arm_transform_graph(ir_graph *irg)
{
assure_irg_properties(irg, IR_GRAPH_PROPERTY_NO_TUPLES
| IR_GRAPH_PROPERTY_NO_BADS);
static int imm_initialized = 0;
ir_entity *entity = get_irg_entity(irg);
const arch_env_t *arch_env = be_get_irg_arch_env(irg);
......
......@@ -369,7 +369,6 @@ static void initialize_birg(be_irg_t *birg, ir_graph *irg, be_main_env_t *env)
assure_irg_properties(irg,
IR_GRAPH_PROPERTY_NO_BADS
| IR_GRAPH_PROPERTY_NO_TUPLES
| IR_GRAPH_PROPERTY_NO_UNREACHABLE_CODE
| IR_GRAPH_PROPERTY_NO_CRITICAL_EDGES
| IR_GRAPH_PROPERTY_MANY_RETURNS);
......
......@@ -5493,7 +5493,8 @@ void ia32_transform_graph(ir_graph *irg)
initial_fpcw = NULL;
ia32_no_pic_adjust = false;
assure_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES);
assure_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_OUT_EDGES
| IR_GRAPH_PROPERTY_NO_TUPLES);
old_initial_fpcw = be_get_initial_reg_value(irg, &ia32_registers[REG_FPCW]);
......
......@@ -416,7 +416,7 @@ static void sparc_handle_intrinsics(ir_graph *irg)
if (changed) {
confirm_irg_properties(irg,
IR_GRAPH_PROPERTY_NO_TUPLES
IR_GRAPH_PROPERTY_NO_BADS
| IR_GRAPH_PROPERTY_NO_CRITICAL_EDGES
| IR_GRAPH_PROPERTY_MANY_RETURNS
| IR_GRAPH_PROPERTY_ONE_RETURN);
......
......@@ -2777,6 +2777,9 @@ static void sparc_register_transformers(void)
*/
void sparc_transform_graph(ir_graph *irg)
{
assure_irg_properties(irg, IR_GRAPH_PROPERTY_NO_TUPLES
| IR_GRAPH_PROPERTY_NO_BADS);
ir_entity *entity = get_irg_entity(irg);
sparc_register_transformers();
......
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