Don't let DEBUG_INSNSs change register renaming decisions
authorJeff Law <law@redhat.com>
Sat, 18 Apr 2020 15:39:18 +0000 (09:39 -0600)
committerJeff Law <law@redhat.com>
Sat, 18 Apr 2020 15:39:18 +0000 (09:39 -0600)
commitbaf3b9b2e5259558ef86bd62398e2ccecd7a4a4c
treee6f26876f0c50c218be7ffbd8a442c88769f533d
parentb57e1621eb76ba80c949ad098829aa8171a8c4ab
Don't let DEBUG_INSNSs change register renaming decisions

PR debug/94439
* regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
the chain.

PR debug/94439
* gcc.dg/torture/pr94439.c: New test.
gcc/ChangeLog
gcc/regrename.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr94439.c [new file with mode: 0644]