Commit 95879efc authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove ia32_code_gen_config_t::use_ftst.

ftst is always available and faster than fldz+fucom.
parent 65447d2f
......@@ -890,7 +890,6 @@ void ia32_setup_cg_config(void)
c->use_softfloat = FLAGS(fpu_arch, IA32_FPU_ARCH_SOFTFLOAT);
c->use_sse2 = FLAGS(fpu_arch, IA32_FPU_ARCH_SSE2) && FLAGS(arch, arch_feature_sse2);
c->use_ffreep = FLAGS(opt_arch, arch_athlon_plus);
c->use_ftst = !FLAGS(arch, arch_feature_p6_insn);
/* valgrind can't cope with femms yet and the usefulness of the optimization
* is questionable anyway */
#if 0
......
......@@ -38,8 +38,6 @@ typedef struct {
unsigned use_sse2:1;
/** use ffreep instead of fpop */
unsigned use_ffreep:1;
/** use ftst where possible */
unsigned use_ftst:1;
/** use femms to pop all float registers */
unsigned use_femms:1;
/** use emms to pop all float registers */
......
......@@ -2868,7 +2868,7 @@ static ir_node *create_Fucom(ir_node *node)
set_ia32_commutative(new_node);
SET_IA32_ORIG_NODE(new_node, node);
} else {
if (ia32_cg_config.use_ftst && is_Const_0(right)) {
if (is_Const_0(right)) {
new_node = new_bd_ia32_vFtstFnstsw(dbgi, new_block, new_left, 0);
} else {
new_right = be_transform_node(right);
......
Supports Markdown
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