]> git.ipfire.org Git - thirdparty/gcc.git/commit
hppa: Update peephole2 patterns for scaled/unscaled indexed loads and stores
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 24 Nov 2025 19:38:49 +0000 (14:38 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 24 Nov 2025 19:38:49 +0000 (14:38 -0500)
commit2d26dcdbcb43ca5b8a3d2e61c7defc3d8a3d55ce
treea040d92a2ae9d65dba2caa64d0ad51c403460290
parente6c6af682931733b44cff286191ce1798bdfd39e
hppa: Update peephole2 patterns for scaled/unscaled indexed loads and stores

The peephole2 patterns to optimize scaled/unscaled indexed loads and
stores are updated to ensure the REG_POINTER flag is set/unset in
the base/index regs on targets with non-equivalent space registers.

Previously, unscaled indexed loads and stores were only optimized on
targets with equivalent space registers.  We can now optimize these
instructions on targets with non-equivalent space registers.

2025-11-24  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.h (REGS_OK_FOR_BASE_INDEX): New define.
* config/pa/pa.md: Update peephole2 patterns for scaled/unscaled
indexed loads and stores.
gcc/config/pa/pa.h
gcc/config/pa/pa.md