On 10/24/2016 04:46 PM, kugan wrote:
Hi,

I noticed that in ipcp_bits_lattice::meet_with we have:

  else if (TREE_CODE_CLASS (code) == tcc_unary)
  ....
  else if (code == NOP_EXPR)
  ....

Since TREE_CODE_CLASS for NOP_EXPR is tcc_unary, if (code == NOP_EXPR)
is unreachable and therefore removing it. I also don't think that we
need any special casing for NOP_EXPR here. bit_value_unop handles
already handles CASE_CONVERT.

Is this OK if no regressions in bootstrap and regression testing.

Thanks,
Kugan




gcc/ChangeLog:

2016-10-25  Kugan Vivekanandarajah  <kug...@linaro.org>

    * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
OK.
jeff


Reply via email to