[llvm] Add option to turn off optimization for X86 assembler (PR #75895)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 21:59:24 PST 2023
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 6a7bbf712df5637a93dbc4f918e7a69e23aa917c 26fb5866e92de1670db78f714944ff82c46108eb -- llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 5390dd94b7..870a3da1b3 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -48,9 +48,9 @@ static cl::opt<bool> LVIInlineAsmHardening(
cl::desc("Harden inline assembly code that may be vulnerable to Load Value"
" Injection (LVI). This feature is experimental."), cl::Hidden);
-static cl::opt<bool> AsmOptimize(
- "x86-inline-asm-optimize", cl::init(true),
- cl::desc("Optimize X86 inline assembly code."), cl::Hidden);
+static cl::opt<bool> AsmOptimize("x86-inline-asm-optimize", cl::init(true),
+ cl::desc("Optimize X86 inline assembly code."),
+ cl::Hidden);
static bool checkScale(unsigned Scale, StringRef &ErrMsg) {
if (Scale != 1 && Scale != 2 && Scale != 4 && Scale != 8) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/75895
More information about the llvm-commits
mailing list