Skip to content

Commit 92e2d4e

Browse files
authored
[DAG] visitFREEZE - remove unused HadMaybePoisonOperands check. NFC. (#149517)
Redundant since #145939
1 parent a9147e6 commit 92e2d4e

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
@@ -16772,12 +16772,8 @@ SDValue DAGCombiner::visitFREEZE(SDNode *N) {
1677216772
if (DAG.isGuaranteedNotToBeUndefOrPoison(Op, /*PoisonOnly*/ false,
1677316773
/*Depth*/ 1))
1677416774
continue;
16775-
bool HadMaybePoisonOperands = !MaybePoisonOperands.empty();
16776-
bool IsNewMaybePoisonOperand = MaybePoisonOperands.insert(Op).second;
16777-
if (IsNewMaybePoisonOperand)
16775+
if (MaybePoisonOperands.insert(Op).second)
1677816776
MaybePoisonOperandNumbers.push_back(OpNo);
16779-
if (!HadMaybePoisonOperands)
16780-
continue;
1678116777
}
1678216778
// NOTE: the whole op may be not guaranteed to not be undef or poison because
1678316779
// it could create undef or poison due to it's poison-generating flags.

0 commit comments

Comments
 (0)