[llvm] [CodeGen] Fix physical-register input latency for inline asm (PR #229764)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 07:51:25 PDT 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 -- llvm/lib/CodeGen/ScheduleDAGInstrs.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/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 0958da63f..bfdd1f3d9 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -243,7 +243,7 @@ void ScheduleDAGInstrs::addPhysRegDataDeps(SUnit *SU, unsigned OperIdx) {
   // Fixed-register asm outputs may be marked implicit. Operand groups
   // distinguish these real outputs from trailing bookkeeping defs.
   bool IsInlineAsmDef = SU->getInstr()->isInlineAsm() &&
-                       SU->getInstr()->findInlineAsmFlagIdx(OperIdx) >= 0;
+                        SU->getInstr()->findInlineAsmFlagIdx(OperIdx) >= 0;
   for (MCRegUnit Unit : TRI->regunits(Reg)) {
     for (RegUnit2SUnitsMap::iterator I = Uses.find(Unit); I != Uses.end();
          ++I) {

``````````

</details>


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


More information about the llvm-commits mailing list