rtl-ssa: Fix reg_raw_mode thinko [PR98347]
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 19:31:02 +0000 (19:31 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 19:31:02 +0000 (19:31 +0000)
commit00bad763dcb903103d62e1ef77c542dacf31fc0a
tree4440d63a04ec9e77e8a057c1acd096b7a1152b68
parent4a7a3110c70da8bad6978a36d9da3836538a0cc3
rtl-ssa: Fix reg_raw_mode thinko [PR98347]

I'd used reg_raw_mode[regno] for general registers, even though
the array is only valid for hard registers.  This patch uses
regno_reg_rtx instead.

gcc/
PR rtl-optimization/98347
* rtl-ssa/access-utils.h (full_register): Use regno_reg_rtx
instead of reg_raw_mode.
gcc/rtl-ssa/access-utils.h