xtensa: Revise complex hard register clobber elimination
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Fri, 20 Jan 2023 03:33:37 +0000 (12:33 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 24 Jan 2023 21:23:03 +0000 (13:23 -0800)
commit1c407dc088231ba5f2cc63d9278f4b797db48de1
tree5c360e20836e0e4f81874c79c7df22cfab87914e
parent265a749f290f7c6adc9a3aaa9c585b498a8a38ea
xtensa: Revise complex hard register clobber elimination

In the previously posted patch
"xtensa: Make complex hard register clobber elimination more robust and accurate",
the check code for insns that refer to the [DS]Cmode hard register before
it is overwritten after it is clobbered is incomplete.  Fortunately such
insns are seldom emitted, so it didn't matter.

This patch fixes that for the sake of completeness.

gcc/ChangeLog:

* config/xtensa/xtensa.md:
Fix exit from loops detecting references before overwriting in the
split pattern.
gcc/config/xtensa/xtensa.md