]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Enable overlapped by-pieces operations
authorHaochen Gui <guihaoc@gcc.gnu.org>
Tue, 14 May 2024 08:37:06 +0000 (16:37 +0800)
committerHaochen Gui <guihaoc@gcc.gnu.org>
Tue, 14 May 2024 08:37:40 +0000 (16:37 +0800)
commitfbd115fe83e96e0796cd8e262ed773b0ba07db81
tree055bcc13af2a94be27c10948d3bdccd189a3610a
parent1a809280929fac9836ff31dcc0980ac8acee7631
rs6000: Enable overlapped by-pieces operations

This patch enables overlapped by-piece operations by defining
TARGET_OVERLAP_OP_BY_PIECES_P to true.  On rs6000, default move/set/clear
ratio is 2.  So the overlap is only enabled with compare by-pieces.

gcc/
* config/rs6000/rs6000.cc (TARGET_OVERLAP_OP_BY_PIECES_P): Define.

gcc/testsuite/
* gcc.target/powerpc/block-cmp-9.c: New.
gcc/config/rs6000/rs6000.cc
gcc/testsuite/gcc.target/powerpc/block-cmp-9.c [new file with mode: 0644]