Skip to content

Commit 1e667db

Browse files
committed
[DAG] visitFREEZE - remove unused HadMaybePoisonOperands check. NFC. (#149517)
Redundant since #145939
1 parent 2ec38ab commit 1e667db

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16751,12 +16751,8 @@ SDValue DAGCombiner::visitFREEZE(SDNode *N) {
1675116751
if (DAG.isGuaranteedNotToBeUndefOrPoison(Op, /*PoisonOnly*/ false,
1675216752
/*Depth*/ 1))
1675316753
continue;
16754-
bool HadMaybePoisonOperands = !MaybePoisonOperands.empty();
16755-
bool IsNewMaybePoisonOperand = MaybePoisonOperands.insert(Op).second;
16756-
if (IsNewMaybePoisonOperand)
16754+
if (MaybePoisonOperands.insert(Op).second)
1675716755
MaybePoisonOperandNumbers.push_back(OpNo);
16758-
if (!HadMaybePoisonOperands)
16759-
continue;
1676016756
}
1676116757
// NOTE: the whole op may be not guaranteed to not be undef or poison because
1676216758
// it could create undef or poison due to it's poison-generating flags.

0 commit comments

Comments
 (0)