[llvm] 92e2d4e - [DAG] visitFREEZE - remove unused HadMaybePoisonOperands check. NFC. (#149517)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 09:38:15 PDT 2025
Author: Simon Pilgrim
Date: 2025-07-18T17:38:11+01:00
New Revision: 92e2d4e9e1ad7a8d66d481b4df3f971450f829f5
URL: https://github.com/llvm/llvm-project/commit/92e2d4e9e1ad7a8d66d481b4df3f971450f829f5
DIFF: https://github.com/llvm/llvm-project/commit/92e2d4e9e1ad7a8d66d481b4df3f971450f829f5.diff
LOG: [DAG] visitFREEZE - remove unused HadMaybePoisonOperands check. NFC. (#149517)
Redundant since #145939
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index b7e41427f2c27..fed5e7238433e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -16772,12 +16772,8 @@ SDValue DAGCombiner::visitFREEZE(SDNode *N) {
if (DAG.isGuaranteedNotToBeUndefOrPoison(Op, /*PoisonOnly*/ false,
/*Depth*/ 1))
continue;
- bool HadMaybePoisonOperands = !MaybePoisonOperands.empty();
- bool IsNewMaybePoisonOperand = MaybePoisonOperands.insert(Op).second;
- if (IsNewMaybePoisonOperand)
+ if (MaybePoisonOperands.insert(Op).second)
MaybePoisonOperandNumbers.push_back(OpNo);
- if (!HadMaybePoisonOperands)
- continue;
}
// NOTE: the whole op may be not guaranteed to not be undef or poison because
// it could create undef or poison due to it's poison-generating flags.
More information about the llvm-commits
mailing list