Skip to content

Commit 66be416

Browse files
Claudiu Zissulescuartemiy-volkov
authored andcommitted
arc64: Use a larger value for MOVE_RATIO
1 parent 5a144e5 commit 66be416

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gcc/config/arc64/arc64.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,10 @@ enum reg_class
365365

366366
/* Maximum bytes moved by a single instruction (load/store pair). */
367367
#define MOVE_MAX (UNITS_PER_WORD)
368-
369-
#define MOVE_RATIO(SPEED) 2
368+
/* The threshold of number of scalar memory-to-memory move insns which
369+
a sequence of insns should be generated instead of a string move
370+
insn or a library call. */
371+
#define MOVE_RATIO(SPEED) ((SPEED) ? 15 : 3)
370372

371373
#ifndef USED_FOR_TARGET
372374
extern const enum reg_class arc64_regno_to_regclass[];

0 commit comments

Comments
 (0)