From: Michael Beck Date: Wed, 6 Oct 2004 16:29:49 +0000 (+0000) Subject: fixed enable mask X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ccc92d26458413986cb5ac221d4b83c8fa740628;p=libfirm fixed enable mask [r4069] --- diff --git a/ir/ir/irarch.c b/ir/ir/irarch.c index ddc240258..b65eaea9d 100644 --- a/ir/ir/irarch.c +++ b/ir/ir/irarch.c @@ -458,7 +458,8 @@ void arch_dep_replace_divmod_with_shifts(ir_node **div, ir_node **mod, ir_node * /* If the architecture dependent optimizations were not initialized or this optimization was not enabled. */ - if (params == NULL || (opts & arch_dep_mod_to_shift) == 0) + if (params == NULL || + (opts & (arch_dep_div_to_shift|arch_dep_mod_to_shift) != (arch_dep_div_to_shift|arch_dep_mod_to_shift))) return; if (get_irn_opcode(irn) == iro_DivMod) {