]> git.ipfire.org Git - thirdparty/gcc.git/commit
xtensa: Eliminate double MEMW insertions for volatile memory
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Wed, 19 Jun 2024 04:59:54 +0000 (13:59 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 19 Jun 2024 17:06:51 +0000 (10:06 -0700)
commit0982552bc4eeffb5520deba10dedecfb2390a8de
tree0071bbfb1e7cfc48ecca8428640a91709ed3f2e4
parentbcb9dad9f6123c14ab8b14d2c3d360461dd5ee17
xtensa: Eliminate double MEMW insertions for volatile memory

This patch makes avoid inserting a MEMW instruction before a load/store
nstruction with volatile memory reference if there is already a MEMW
immediately before it.

gcc/ChangeLog:

* config/xtensa/xtensa.cc (print_operand):
When outputting MEMW before the instruction, check if the previous
instruction is already that.
gcc/config/xtensa/xtensa.cc