]> git.ipfire.org Git - thirdparty/gcc.git/commit
regcprop: Return early in maybe_mode_change for unorder modes [PR124649]
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Thu, 26 Mar 2026 20:21:01 +0000 (13:21 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 27 Mar 2026 16:35:19 +0000 (09:35 -0700)
commitaf787f951b882cbf3acfb41ea3531fcd3083934f
tree35eeb806dca44f7c814f10f7caafe5f9f4bd2251
parent8df8a196f7d9786716df5583023c347c61dea5cb
regcprop: Return early in maybe_mode_change for unorder modes [PR124649]

Like r16-727-g2ec5082dd24cef but the call to partial_subreg_p happens
in a later place, maybe_mode_change.
For this example we have VNx4QImode and DImode which are not ordered.

Bootstrapped and tested on aarch64-linux-gnu.

PR rtl-optimization/124649

gcc/ChangeLog:

* regcprop.cc (maybe_mode_change): Return early
for unordered modes.

gcc/testsuite/ChangeLog:

* gcc.dg/torture/pr124649-1.c: New test.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/regcprop.cc
gcc/testsuite/gcc.dg/torture/pr124649-1.c [new file with mode: 0644]