[llvm] [Analysis] Remove traces of BlockEdgesAdder (PR #147102)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 12:33:05 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
This patch removes traces of BlockEdgesAdder, which was a workaround
for an ancient version of GCC removed by:
commit c17e88f07e26247bf876bd7e8057dcd1b89d702c
Author: Kazu Hirata <kazu@<!-- -->google.com>
Date: Tue Jul 1 10:42:29 2025 -0700
---
Full diff: https://github.com/llvm/llvm-project/pull/147102.diff
1 Files Affected:
- (modified) llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h (-6)
``````````diff
diff --git a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
index d86760c4f9fe9..c9de5a4fa9213 100644
--- a/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
+++ b/llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
@@ -72,9 +72,6 @@ namespace bfi_detail {
struct IrreducibleGraph;
-// This is part of a workaround for a GCC 4.7 crash on lambdas.
-template <class BT> struct BlockEdgesAdder;
-
/// Mass of a block.
///
/// This class implements a sort of fixed-point fraction always between 0.0 and
@@ -843,9 +840,6 @@ void IrreducibleGraph::addEdges(const BlockNode &Node,
/// (Running this until fixed point would "solve" the geometric
/// series by simulation.)
template <class BT> class BlockFrequencyInfoImpl : BlockFrequencyInfoImplBase {
- // This is part of a workaround for a GCC 4.7 crash on lambdas.
- friend struct bfi_detail::BlockEdgesAdder<BT>;
-
using BlockT = typename bfi_detail::TypeMap<BT>::BlockT;
using BlockKeyT = typename bfi_detail::TypeMap<BT>::BlockKeyT;
using FunctionT = typename bfi_detail::TypeMap<BT>::FunctionT;
``````````
</details>
https://github.com/llvm/llvm-project/pull/147102
More information about the llvm-commits
mailing list