[llvm-branch-commits] [X86][NewPM] Port X86FlagsCopyLowering to NPM (PR #173752)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Dec 28 14:15:58 PST 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 origin/main HEAD --extensions cpp,h -- llvm/lib/Target/X86/X86.h llvm/lib/Target/X86/X86FlagsCopyLowering.cpp llvm/lib/Target/X86/X86TargetMachine.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/Target/X86/X86FlagsCopyLowering.cpp b/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
index 40cfdfed7..5f3866387 100644
--- a/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+++ b/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
@@ -961,7 +961,8 @@ bool X86FlagsCopyLoweringLegacy::runOnMachineFunction(MachineFunction &MF) {
PreservedAnalyses
X86FlagsCopyLoweringPass::run(MachineFunction &MF,
MachineFunctionAnalysisManager &MFAM) {
- MachineDominatorTree *MDT = MFAM.getCachedResult<MachineDominatorTreeAnalysis>(MF);
+ MachineDominatorTree *MDT =
+ MFAM.getCachedResult<MachineDominatorTreeAnalysis>(MF);
bool Changed = X86FlagsCopyLoweringImpl(MDT).runOnMachineFunction(MF);
return Changed ? PreservedAnalyses::all()
: getMachineFunctionPassPreservedAnalyses();
``````````
</details>
https://github.com/llvm/llvm-project/pull/173752
More information about the llvm-branch-commits
mailing list