[llvm] [WIP][X86] X86FixupVectorConstantsPass - use scheduler model to avoid regressions (PR #140028)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 04:46:27 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/X86/X86FixupVectorConstants.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
index 9d9eeb181..95bfaf574 100644
--- a/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
+++ b/llvm/lib/Target/X86/X86FixupVectorConstants.cpp
@@ -358,7 +358,8 @@ bool X86FixupVectorConstantsPass::processInstruction(MachineFunction &MF,
         RebuildConstant;
   };
 
-  auto NewOpcPreferable = [&](const FixupEntry &Fixup, unsigned RegBitWidth) -> bool {
+  auto NewOpcPreferable = [&](const FixupEntry &Fixup,
+                              unsigned RegBitWidth) -> bool {
     if (SM->hasInstrSchedModel()) {
       unsigned NewOpc = Fixup.Op;
       auto *OldDesc = SM->getSchedClassDesc(TII->get(Opc).getSchedClass());

``````````

</details>


https://github.com/llvm/llvm-project/pull/140028


More information about the llvm-commits mailing list