]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl: Validate subreg info when optimizing vec_select.
authorTejas Belagod <tejas.belagod@arm.com>
Mon, 2 Sep 2024 15:23:42 +0000 (20:53 +0530)
committerTejas Belagod <tejas.belagod@arm.com>
Tue, 12 Nov 2024 09:49:34 +0000 (15:19 +0530)
commita552a808f004c90d6f880f296041d674bdc27eda
tree8d94d25d46326ed1654988d9faa297181eec6c0d
parent9a62c1495891032922af5bf9bd1906999cf63605
rtl: Validate subreg info when optimizing vec_select.

When optimizing for NOPs in case of overlapping regs in VEC_SELECT expressions,
validate subreg data before using simplify_subreg_regno.  There is no real
SUBREG rtx here, but a pseudo subreg call to check if subregs are possible.

gcc/ChangeLog:

* rtlanal.cc (set_noop_p): Validate subreg constraints before checking
for overlapping regs using simplify_subreg_regno.
gcc/rtlanal.cc