[llvm] [CodeGen] Port selection dag isel to new pass manager (PR #83567)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 04:45:16 PST 2024


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 7ff3f9760da7d7c8fe9209280aefb05168efcf20 c84a2aaf791ea11324d7ab99c41e933953425ad1 -- llvm/lib/Target/X86/X86ISelDAGToDAG.h llvm/include/llvm/CodeGen/SelectionDAG.h llvm/include/llvm/CodeGen/SelectionDAGISel.h llvm/include/llvm/CodeGen/StackProtector.h llvm/lib/CodeGen/GCRootLowering.cpp llvm/lib/CodeGen/MachinePassManager.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp llvm/lib/Target/X86/X86.h llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp llvm/lib/Target/X86/X86ISelDAGToDAG.cpp llvm/lib/Target/X86/X86TargetMachine.cpp llvm/lib/Target/X86/X86TargetMachine.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 81e03b885f..4130a2fc8f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -355,7 +355,7 @@ bool SelectionDAGISelLegacy::runOnMachineFunction(MachineFunction &MF) {
   // If we already selected that function, we do not need to run SDISel.
   if (MF.getProperties().hasProperty(
           MachineFunctionProperties::Property::Selected))
-      return false;
+    return false;
 
   // Do some sanity-checking on the command-line options.
   assert((!EnableFastISelAbort || Selector->TM.Options.EnableFastISel) &&

``````````

</details>


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


More information about the llvm-commits mailing list