]> git.ipfire.org Git - thirdparty/gcc.git/commit
cprop_hardreg: Ensure replacement reg has compatible mode [PR99221]
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Fri, 12 Mar 2021 16:32:42 +0000 (17:32 +0100)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Tue, 23 Mar 2021 08:48:01 +0000 (09:48 +0100)
commita28cc94a27529b3108ea85be9ef5557a3c95791d
tree8d29ffd18dc26f9ac50d6c44516c64a3a4af587f
parente54da1b6b39baadded02a28382bb6efb70e687c1
cprop_hardreg: Ensure replacement reg has compatible mode [PR99221]

In addition to the existing check also ask the target whether a
replacement register may be accessed in a different mode than it was set
before.

gcc/ChangeLog:

* regcprop.c (find_oldest_value_reg): Ask target whether
  different mode is fine for replacement register.
gcc/regcprop.c