]> git.ipfire.org Git - thirdparty/gcc.git/commit
cris.md: Post-reload, split/generate clobberless memory destination moves
authorHans-Peter Nilsson <hp@axis.com>
Mon, 27 Jan 2020 03:24:59 +0000 (04:24 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 9 May 2020 01:43:51 +0000 (03:43 +0200)
commite49cee5c8dce341f688741e5b093f6b5560c8090
tree5bac190390374e2d6228d73eb194990f89973675
parenta4f15e7ae10e2ac5f3baa4c1d5e16801e5967c18
cris.md: Post-reload, split/generate clobberless memory destination moves

In preparation for compare-elimination (for it to be obviously
useful), we have to have some common insn in-between that
doesn't clobber condition-codes.  A move to memory is an obvious
choice.  Note the FIXME: we can do this for a zero source too;
later.

gcc:
* config/cris/cris.md ("movsi"): For memory destination
post-reload, generate clobberless variant.
("*mov_tomem<mode>_split"): New split.
("*mov_tomem<mode>"): New insn.
("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
"Q>m" for less-than-SImode.
gcc/ChangeLog
gcc/config/cris/cris.md