Skip to content

Commit 7a41aee

Browse files
vineetgarcartemiy-volkov
authored andcommitted
ARC64 Revert back to aligned data accesses only for now (gcc-mirror#94)
It seems hardware at this point is not mature enough (performance wise atleast) for unaligned accesses. With -mno-unaligned-access hackbench on FPGA improves by more than 10%: 115.959 secs to 93.095 More importantly there's still unresolved issue of gcc generating an invalid load promption to word (vs. byte) for glibc test-suite string/test-strcmp. So better to keep this disabled for now and stabalize software stack in general before cranking up optimization. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent bead4d8 commit 7a41aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/config/arc64/arc64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
/* Default unaligned accesses. */
9393
#ifndef UNALIGNED_ACCESS_DEFAULT
94-
#define UNALIGNED_ACCESS_DEFAULT 1
94+
#define UNALIGNED_ACCESS_DEFAULT 0
9595
#endif
9696

9797
/* Layout of Source Language Data Types. */

0 commit comments

Comments
 (0)