combine: Use correct mode in new comparison (PR86902)
commit02e7d4b5ae1f230ab8b321c3088aa1cc8f576660
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Sep 2018 17:38:11 +0000 (19 17:38 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Sep 2018 17:38:11 +0000 (19 17:38 +0000)
tree741490327756b0c522aed4b2649b87ae85571e1b
parent4101aa7e35ca5c18319fa494f232b6dc3649d450
combine: Use correct mode in new comparison (PR86902)

This code in try_combine uses the wrong mode.  This fails (with RTL
checking) in trunk, but not in any released branches.

PR rtl-optimization/86902
* combine.c (try_combine): When changing the CC mode used, don't change
an unrelated mode in other_insn to that new CC mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264426 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/combine.c