re PR target/80125 (r246297 causes segfault in reg_used_between_p())
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Mar 2017 14:49:51 +0000 (15:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Mar 2017 14:49:51 +0000 (15:49 +0100)
commit85106b8757d46f80a5993fc75948a82ce16c1f74
tree1a81dd0d7abfba195d6e9f2a5236c6a0ae6f0f7c
parent8c0f9dab864878286b6fd16e26d62be4742cd7d6
re PR target/80125 (r246297 causes segfault in reg_used_between_p())

PR target/80125
* combine.c (can_combine_p): Revert the 2017-03-20 change, only
check reg_used_between_p between insn and one of succ or succ2
depending on if succ is artificial insn not inserted into insn
stream.

* gcc.target/powerpc/pr80125.c: New test.

Co-Authored-By: Segher Boessenkool <segher@kernel.crashing.org>
From-SVN: r246323
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr80125.c [new file with mode: 0644]