Skip to content

Commit 3e2e99b

Browse files
[Analysis] Remove traces of BlockEdgesAdder (#147102)
This patch removes traces of BlockEdgesAdder, which was a workaround for an ancient version of GCC removed by: commit c17e88f Author: Kazu Hirata <kazu@google.com> Date: Tue Jul 1 10:42:29 2025 -0700
1 parent f78d74f commit 3e2e99b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ namespace bfi_detail {
7272

7373
struct IrreducibleGraph;
7474

75-
// This is part of a workaround for a GCC 4.7 crash on lambdas.
76-
template <class BT> struct BlockEdgesAdder;
77-
7875
/// Mass of a block.
7976
///
8077
/// This class implements a sort of fixed-point fraction always between 0.0 and
@@ -843,9 +840,6 @@ void IrreducibleGraph::addEdges(const BlockNode &Node,
843840
/// (Running this until fixed point would "solve" the geometric
844841
/// series by simulation.)
845842
template <class BT> class BlockFrequencyInfoImpl : BlockFrequencyInfoImplBase {
846-
// This is part of a workaround for a GCC 4.7 crash on lambdas.
847-
friend struct bfi_detail::BlockEdgesAdder<BT>;
848-
849843
using BlockT = typename bfi_detail::TypeMap<BT>::BlockT;
850844
using BlockKeyT = typename bfi_detail::TypeMap<BT>::BlockKeyT;
851845
using FunctionT = typename bfi_detail::TypeMap<BT>::FunctionT;

0 commit comments

Comments
 (0)