aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadedge.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@nextmovesoftware.com>2021-09-12 15:18:57 +0100
committerRoger Sayle <roger@nextmovesoftware.com>2021-09-12 15:18:57 +0100
commitb195fae7c11b35c8ee551cd302e3daf8e08c78d0 (patch)
tree5846979797bcefad6ea01f4c68a03b966ba4fb25 /gcc/tree-ssa-threadedge.c
parentd71126eeea5c324115c8825b3cec55e5c2fd1627 (diff)
downloadgcc-b195fae7c11b35c8ee551cd302e3daf8e08c78d0.zip
gcc-b195fae7c11b35c8ee551cd302e3daf8e08c78d0.tar.gz
gcc-b195fae7c11b35c8ee551cd302e3daf8e08c78d0.tar.bz2
Also preserve SUBREG_PROMOTED_VAR_P in expr.c's convert_move.
This patch catches another place in the middle-end where it's possible to preserve the SUBREG_PROMOTED_VAR_P annotation on a subreg to the benefit of later RTL optimizations. This adds the same logic to expr.c's convert_move as recently added to convert_modes. On nvptx-none, the simple test program: short foo (char c) { return c; } currently generates three instructions: mov.u32 %r23, %ar0; cvt.u16.u32 %r24, %r23; cvt.s32.s16 %value, %r24; with this patch, we now generate just one: mov.u32 %value, %ar0; This patch should look familiar, it's almost identical to the recent patch https://gcc.gnu.org/pipermail/gcc-patches/2021-August/578331.html but with the fix https://gcc.gnu.org/pipermail/gcc-patches/2021-August/578519.html 2021-09-12 Roger Sayle <roger@nextmovesoftware.com> gcc/ChangeLog * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P subreg.
Diffstat (limited to 'gcc/tree-ssa-threadedge.c')
0 files changed, 0 insertions, 0 deletions