Commit 84bb5671 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused have_fp_insn

[r27735]
parent 70b9a908
......@@ -215,8 +215,6 @@ static ir_node *gen_Conv(ir_node *node)
return new_op;
if (mode_is_float(src_mode) || mode_is_float(dst_mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
if (mode_is_float(src_mode)) {
if (mode_is_float(dst_mode)) {
......@@ -403,7 +401,6 @@ static ir_node *gen_Add(ir_node *node)
dbg_info *dbgi = get_irn_dbg_info(node);
ir_node *new_op1 = be_transform_node(op1);
ir_node *new_op2 = be_transform_node(op2);
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
#if 0
if (is_arm_fpaMvf_i(new_op1))
......@@ -458,7 +455,6 @@ static ir_node *gen_Mul(ir_node *node)
dbg_info *dbg = get_irn_dbg_info(node);
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
#if 0
if (is_arm_Mov_i(new_op1))
......@@ -490,7 +486,6 @@ static ir_node *gen_Quot(ir_node *node)
assert(mode != mode_E && "IEEE Extended FP not supported");
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
#if 0
if (is_arm_Mov_i(new_op1))
......@@ -536,7 +531,6 @@ static ir_node *gen_Sub(ir_node *node)
dbg_info *dbgi = get_irn_dbg_info(node);
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
#if 0
if (is_arm_Mov_i(new_op1))
......@@ -735,7 +729,6 @@ static ir_node *gen_Abs(ir_node *node)
ir_mode *mode = get_irn_mode(node);
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
return new_bd_arm_fpaAbs(dbgi, block, new_op, mode);
} else if (USE_VFP(env_cg->isa)) {
......@@ -758,7 +751,6 @@ static ir_node *gen_Minus(ir_node *node)
ir_mode *mode = get_irn_mode(node);
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
return new_bd_arm_fpaMvf(dbgi, block, op, mode);
} else if (USE_VFP(env_cg->isa)) {
......@@ -784,7 +776,6 @@ static ir_node *gen_Load(ir_node *node)
ir_node *new_load = NULL;
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
new_load = new_bd_arm_fpaLdf(dbgi, block, new_ptr, new_mem, mode);
} else if (USE_VFP(env_cg->isa)) {
......@@ -824,7 +815,6 @@ static ir_node *gen_Store(ir_node *node)
ir_node *new_store = NULL;
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
new_store = new_bd_arm_fpaStf(dbgi, block, new_ptr, new_val,
new_mem, mode);
......@@ -1016,7 +1006,6 @@ static ir_node *gen_Const(ir_node *node)
dbg_info *dbg = get_irn_dbg_info(node);
if (mode_is_float(mode)) {
env_cg->have_fp_insn = 1;
if (USE_FPA(env_cg->isa)) {
tarval *tv = get_Const_tarval(node);
#if 0
......
......@@ -321,7 +321,6 @@ static void *arm_cg_init(ir_graph *irg)
cg->reg_set = new_set(arm_cmp_irn_reg_assoc, 1024);
cg->isa = isa;
cg->int_tp = int_tp;
cg->have_fp_insn = 0;
cg->dump = (be_get_irg_options(irg)->dump_flags & DUMP_BE) ? 1 : 0;
FIRM_DBG_REGISTER(cg->mod, "firm.be.arm.cg");
......
......@@ -142,7 +142,6 @@ typedef struct _arm_code_gen_t {
set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */
arm_isa_t *isa; /**< the isa instance */
ir_type *int_tp; /**< the int type, needed for Call conversion */
char have_fp_insn; /**< non-zero, if fp hardware instructions are emitted */
char dump; /**< set to 1 if graphs should be dumped */
DEBUG_ONLY(firm_dbg_module_t *mod;) /**< debugging module */
} arm_code_gen_t;
......
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