From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 7E83B3955CBD; Wed, 16 Nov 2022 08:28:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E83B3955CBD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668587314; bh=DHUezN8IPxQBdpX2xJThJmqYLp4Gz1rdYeA4nxOGzuc=; h=From:To:Subject:Date:From; b=WNrZX4giUZ/KQ5QcQ8tfdpQ62KSAKMFEE+dE9SzgE0D8iRa6IsY3Tsy5lUwGDqY7h QC30IyeDUXzP3bbRg+MYpAYCzlX2tAhLCHz7yETeTAK1f3iw2QwHj2yTS65Zl+lG/V h8537uQTPdnJekyyIczhTHTaA1WaZFpQHuAafc14= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/dmf004)] Don't do load/store vector with length if overlap. X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/dmf004 X-Git-Oldrev: ece06cb8df9e4265cf02ac8346a5f4c40b7c359a X-Git-Newrev: cc045071b71691506e598fd39969e18dd05cc6f5 Message-Id: <20221116082834.7E83B3955CBD@sourceware.org> Date: Wed, 16 Nov 2022 08:28:34 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cc045071b71691506e598fd39969e18dd05cc6f5 commit cc045071b71691506e598fd39969e18dd05cc6f5 Author: Michael Meissner Date: Wed Nov 16 03:28:12 2022 -0500 Don't do load/store vector with length if overlap. 2022-11-16 Michael Meissner 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;