[llvm] [MachineLICM] Give opportunity to analyze physregs for invariance. (PR #84779)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 09:10:39 PDT 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 63a5dc4aedaf8a4b26e536afb22612b4d69100bf e81bdb1509013bedea62299aa35c89b56c83eb88 -- llvm/include/llvm/CodeGen/MachineLoopInfo.h llvm/include/llvm/CodeGen/TargetRegisterInfo.h llvm/lib/CodeGen/MachineLoopInfo.cpp llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp llvm/lib/Target/AArch64/AArch64RegisterInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/TargetRegisterInfo.h b/llvm/include/llvm/CodeGen/TargetRegisterInfo.h
index bf7e770aea..117d3f7182 100644
--- a/llvm/include/llvm/CodeGen/TargetRegisterInfo.h
+++ b/llvm/include/llvm/CodeGen/TargetRegisterInfo.h
@@ -574,7 +574,9 @@ public:
/// Returns true if MachineLoopInfo should analyze the given physreg
/// for loop invariance.
- virtual bool shouldAnalyzePhysregInMachineLoopInfo(MCRegister R) const { return false; }
+ virtual bool shouldAnalyzePhysregInMachineLoopInfo(MCRegister R) const {
+ return false;
+ }
/// Physical registers that may be modified within a function but are
/// guaranteed to be restored before any uses. This is useful for targets that
``````````
</details>
https://github.com/llvm/llvm-project/pull/84779
More information about the llvm-commits
mailing list