[clang] [llvm] [RISCV] Add a command line option to disable register overlap for vector indexed load. (PR #224739)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 12 19:52:06 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,c -- clang/lib/Driver/ToolChains/Arch/RISCV.cpp clang/test/Driver/riscv-features.c llvm/lib/Target/RISCV/RISCVISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Arch/RISCV.cpp b/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
index 7fb864178..db21c46d7 100644
--- a/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
+++ b/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
@@ -178,9 +178,8 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
Features.push_back("+unaligned-vector-mem");
}
- if (const Arg *A =
- Args.getLastArg(options::OPT_mfix_sifive_mal_9174,
- options::OPT_mno_fix_sifive_mal_9174)) {
+ if (const Arg *A = Args.getLastArg(options::OPT_mfix_sifive_mal_9174,
+ options::OPT_mno_fix_sifive_mal_9174)) {
if (A->getOption().matches(options::OPT_mfix_sifive_mal_9174))
Features.push_back("+fix-sifive-mal-9174");
else
``````````
</details>
https://github.com/llvm/llvm-project/pull/224739
More information about the cfe-commits
mailing list