public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/dmf004)] Don't do load/store vector with length if overlap.
@ 2022-11-16 8:28 Michael Meissner
0 siblings, 0 replies; 2+ messages in thread
From: Michael Meissner @ 2022-11-16 8:28 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:cc045071b71691506e598fd39969e18dd05cc6f5
commit cc045071b71691506e598fd39969e18dd05cc6f5
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Wed Nov 16 03:28:12 2022 -0500
Don't do load/store vector with length if overlap.
2022-11-16 Michael Meissner <meissner@linux.ibm.com>
gcc/
* config/rs6000/rs6000-string.cc (expand_block_move): Don't do the
optimization to use load/store vector with length if the source and
destination might overlap.
Diff:
---
gcc/config/rs6000/rs6000-string.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/rs6000/rs6000-string.cc b/gcc/config/rs6000/rs6000-string.cc
index 6e1e51c15fb..038f194c32c 100644
--- a/gcc/config/rs6000/rs6000-string.cc
+++ b/gcc/config/rs6000/rs6000-string.cc
@@ -2838,7 +2838,7 @@ expand_block_move (rtx operands[], bool might_overlap)
if (TARGET_BLOCK_OPS_UNALIGNED_VSX && TARGET_P9_VECTOR && TARGET_64BIT
&& rs6000_memcpy_inline_bytes > 0
&& rs6000_memcpy_inline_bytes <= 255
- && optimize && !optimize_size)
+ && !might_overlap && optimize && !optimize_size)
{
expand_block_move_variable (orig_dest, orig_src, bytes_rtx);
return 1;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/meissner/heads/dmf004)] Don't do load/store vector with length if overlap.
@ 2022-11-17 21:55 Michael Meissner
0 siblings, 0 replies; 2+ messages in thread
From: Michael Meissner @ 2022-11-17 21:55 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:06d852660c1400211cee38507fb4796e462ca914
commit 06d852660c1400211cee38507fb4796e462ca914
Author: Michael Meissner <meissner@linux.ibm.com>
Date: Wed Nov 16 03:28:12 2022 -0500
Don't do load/store vector with length if overlap.
2022-11-16 Michael Meissner <meissner@linux.ibm.com>
gcc/
* config/rs6000/rs6000-string.cc (expand_block_move): Don't do the
optimization to use load/store vector with length if the source and
destination might overlap.
Diff:
---
gcc/config/rs6000/rs6000-string.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/rs6000/rs6000-string.cc b/gcc/config/rs6000/rs6000-string.cc
index 6e1e51c15fb..038f194c32c 100644
--- a/gcc/config/rs6000/rs6000-string.cc
+++ b/gcc/config/rs6000/rs6000-string.cc
@@ -2838,7 +2838,7 @@ expand_block_move (rtx operands[], bool might_overlap)
if (TARGET_BLOCK_OPS_UNALIGNED_VSX && TARGET_P9_VECTOR && TARGET_64BIT
&& rs6000_memcpy_inline_bytes > 0
&& rs6000_memcpy_inline_bytes <= 255
- && optimize && !optimize_size)
+ && !might_overlap && optimize && !optimize_size)
{
expand_block_move_variable (orig_dest, orig_src, bytes_rtx);
return 1;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-17 21:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 8:28 [gcc(refs/users/meissner/heads/dmf004)] Don't do load/store vector with length if overlap Michael Meissner
2022-11-17 21:55 Michael Meissner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).