From ae25529f570c16fd37596af49d69f381aaa83f5a Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 23 Dec 2024 00:40:57 +1300 Subject: [PATCH] [CHERIoT] Enable FeatureUnalignedScalarMem for cheriot. This is a performance heuristic that signals that scalar unaligned memory accesses are fast, i.e. not emulated. --- llvm/lib/Target/RISCV/RISCVProcessors.td | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/RISCV/RISCVProcessors.td b/llvm/lib/Target/RISCV/RISCVProcessors.td index c5a4e3fec921..d405ba45a272 100644 --- a/llvm/lib/Target/RISCV/RISCVProcessors.td +++ b/llvm/lib/Target/RISCV/RISCVProcessors.td @@ -210,4 +210,5 @@ def CHERIOT : RISCVProcessorModel<"cheriot", FeatureCheri, FeatureCapMode, FeatureStdExtC, - FeatureStdExtM]>; + FeatureStdExtM, + FeatureUnalignedScalarMem]>;