[llvm] 3e2e99b - [Analysis] Remove traces of BlockEdgesAdder (#147102)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 18:38:48 PDT 2025
Author: Kazu Hirata
Date: 2025-07-04T18:38:44-07:00
New Revision: 3e2e99bc6778a75222871a907c9b57e607e3414a
URL: https://github.com/llvm/llvm-project/commit/3e2e99bc6778a75222871a907c9b57e607e3414a
DIFF: https://github.com/llvm/llvm-project/commit/3e2e99bc6778a75222871a907c9b57e607e3414a.diff
LOG: [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 c17e88f07e26247bf876bd7e8057dcd1b89d702c
Author: Kazu Hirata <kazu at google.com>
Date: Tue Jul 1 10:42:29 2025 -0700
Added:
Modified:
llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
Removed:
################################################################################
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;
More information about the llvm-commits
mailing list