[llvm-branch-commits] [llvm] [TailCallElim] Add profile annotations to return value selects (PR #202518)
Aiden Grossman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Sep 28 19:21:28 PDT 2026
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/202518
>From 9af2da9adf7c91aa8147008dc659e5c7b771659a Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 9 Jun 2026 21:21:57 +0000
Subject: [PATCH] fix uninit variable
Created using spr 1.3.7
---
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
index 16e6a312eeda0..01153e5c28ab3 100644
--- a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
@@ -433,7 +433,7 @@ class TailRecursionEliminator {
// Keep track of the sum of frequencies of blocks that have calls eliminated
// so we can synthesize branch weights later that require information on
// recursion frequency.
- uint64_t EliminateBlocksFrequencySum;
+ uint64_t EliminateBlocksFrequencySum = 0;
// The below are shared state needed when performing accumulator recursion.
// There values should be populated by insertAccumulator the first time we
More information about the llvm-branch-commits
mailing list