Skip to content

Commit 5a16ed9

Browse files
authored
[RISCV] Add +unaligned-scalar-mem to spacemit-x60 (#115125)
I can't find any official documentation on this, but from other discussions[^1] and my own testing the spacemit-x60 seems to support unaligned scalar loads and stores. They seem to be performant, and just from a quick test we get a 2.45% speedup on 500.perlbench_r on the Banana Pi F3[^2]. This would allow it to take advantage of #107548. [^1]: #110454 (comment) [^2]: https://lnt.lukelau.me/db_default/v4/nts/32
1 parent c753533 commit 5a16ed9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ def SPACEMIT_X60 : RISCVProcessorModel<"spacemit-x60",
476476
FeatureStdExtZicond,
477477
FeatureStdExtZvfh,
478478
FeatureStdExtZvkt,
479-
FeatureStdExtZvl256b]),
479+
FeatureStdExtZvl256b,
480+
FeatureUnalignedScalarMem]),
480481
[TuneDLenFactor2,
481482
TuneOptimizedNF2SegmentLoadStore,
482483
TuneOptimizedNF3SegmentLoadStore,

0 commit comments

Comments
 (0)