On 10/31/2016 08:56 PM, Dominik Vogt wrote:
combine_simplify_rtx() tries to replace rtx expressions with just two
possible values with an experession that uses if_then_else:
(if_then_else (condition) (value1) (value2))
If the original expression is e.g.
(and (reg) (const_int 2))
I'm not convinced that if_then_else_cond is the right place to do this.
That function is designed to answer the question of whether an rtx has
exactly one of two values and under which condition; I feel it should
continue to work this way.
Maybe simplify_ternary_expression needs to be taught to deal with this case?
Bernd