[llvm] Invalidate analyses after running Attributor in OpenMPOpt (PR #74908)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 17:34:03 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 a5bdc4a4604272fa2b2c60fa9dde7aee05456162 6fd90240e1e6d910da983d05a4b00207ad3a084a -- llvm/include/llvm/Transforms/IPO/Attributor.h llvm/lib/Transforms/IPO/OpenMPOpt.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index d46b331f87..6cc31ce8c6 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -1157,9 +1157,7 @@ struct AnalysisGetter {
return nullptr;
}
- void invalidate() {
- FAM->clear();
- }
+ void invalidate() { FAM->clear(); }
AnalysisGetter(FunctionAnalysisManager &FAM, bool CachedOnly = false)
: FAM(&FAM), CachedOnly(CachedOnly) {}
@@ -1290,9 +1288,7 @@ struct InformationCache {
return AssumeOnlyValues.contains(&I);
}
- void invalidate() {
- AG.invalidate();
- }
+ void invalidate() { AG.invalidate(); }
/// Return the analysis result from a pass \p AP for function \p F.
template <typename AP>
``````````
</details>
https://github.com/llvm/llvm-project/pull/74908
More information about the llvm-commits
mailing list