[llvm] [StructurizeCFG] Remove one SSAUpdater::AddAvailableValue. NFCI. (PR #115472)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 04:49:26 PST 2024


https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/115472

None

>From f052fc023d84f26d1e0d2e43074169e7dcc7ba06 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Fri, 8 Nov 2024 12:46:16 +0000
Subject: [PATCH] [StructurizeCFG] Remove one SSAUpdater::AddAvailableValue.
 NFCI.

---
 llvm/lib/Transforms/Scalar/StructurizeCFG.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
index 2a0f0423bbc8f6..6eb292e34fd93c 100644
--- a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -616,7 +616,6 @@ void StructurizeCFG::insertConditions(bool Loops) {
     BasicBlock *SuccFalse = Term->getSuccessor(1);
 
     PhiInserter.Initialize(Boolean, "");
-    PhiInserter.AddAvailableValue(&Func->getEntryBlock(), Default);
     PhiInserter.AddAvailableValue(Loops ? SuccFalse : Parent, Default);
 
     BBPredicates &Preds = Loops ? LoopPreds[SuccFalse] : Predicates[SuccTrue];



More information about the llvm-commits mailing list