[llvm] [MachineBlockPlacement][X86] Use max of MDAlign and TLIAlign to align Loops. (PR #71026)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 05:42:54 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 b28a296cdfb6309fed328e5a299d392a0a841ce1 cd4371a123eb936103bc4f74bd07544fc015ccfd -- llvm/include/llvm/CodeGen/MachineLoopInfo.h llvm/lib/CodeGen/MachineBlockPlacement.cpp llvm/lib/CodeGen/MachineLoopInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/MachineLoopInfo.cpp b/llvm/lib/CodeGen/MachineLoopInfo.cpp
index 513bbc5eec..a2c10e8361 100644
--- a/llvm/lib/CodeGen/MachineLoopInfo.cpp
+++ b/llvm/lib/CodeGen/MachineLoopInfo.cpp
@@ -185,7 +185,9 @@ MDNode *MachineLoop::getLoopID() const {
}
}
}
- assert((LoopID && LoopID->getNumOperands() != 0 && LoopID->getOperand(0) == LoopID) && "Dropped inconsistent MD_loop (self-ref).");
+ assert((LoopID && LoopID->getNumOperands() != 0 &&
+ LoopID->getOperand(0) == LoopID) &&
+ "Dropped inconsistent MD_loop (self-ref).");
return LoopID;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/71026
More information about the llvm-commits
mailing list