On 07/26/2016 06:10 PM, kugan wrote:
Hi Jeff,
Thanks for your comments.
....
* tree-ssa-reassoc.c (maybe_optimize_range_tests): Check type
compatibility.
I'd kind of like to see some analysis of how we've got a bool here --
ISTM it ought to have been converted it to the type of the LHS of the
PHI when propagated.
You are right. The problem was with the order of checking tcc_compare
and calling get_ops. We ended up calling get_ops where we should not.
Bootstrap and regression testing is ongoing. Is this OK for trunk if no
regressions?
Thanks,
Kugan
gcc/testsuite/ChangeLog:
2016-07-27 Kugan Vivekanandarajah <kug...@linaro.org>
* gcc.dg/torture/pr71994.c: New test.
gcc/ChangeLog:
2016-07-27 Kugan Vivekanandarajah <kug...@linaro.org>
* tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
before calling get_ops.
OK if no regressions.
jeff