rtlanal: Add simple_regno_set
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 00:15:10 +0000 (00:15 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 00:15:10 +0000 (00:15 +0000)
commita20cc01679040fb3b069285a638e3a469c688159
tree3ebd7235e422ff4188b800acebed59a3b9e83d93
parent04ee46ed1c06cbbffcd8eb0626b4ab6c3a5082d9
rtlanal: Add simple_regno_set

This patch adds a routine for finding a “simple” SET for a register
definition.  See the comment in the patch for details.

gcc/
* rtl.h (simple_regno_set): Declare.
* rtlanal.c (simple_regno_set): New function.
gcc/rtl.h
gcc/rtlanal.c