[llvm] df3ea73 - [DAG] Use DAG.getFreeze() to create freeze node. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 02:26:35 PDT 2022
Author: Simon Pilgrim
Date: 2022-08-10T10:26:26+01:00
New Revision: df3ea7365eeac7b45044404e432dd33cca45d9fd
URL: https://github.com/llvm/llvm-project/commit/df3ea7365eeac7b45044404e432dd33cca45d9fd
DIFF: https://github.com/llvm/llvm-project/commit/df3ea7365eeac7b45044404e432dd33cca45d9fd.diff
LOG: [DAG] Use DAG.getFreeze() to create freeze node. NFC.
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 4981dd214918..bbec4f9d2c48 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -13869,9 +13869,7 @@ SDValue DAGCombiner::visitFREEZE(SDNode *N) {
if (N0.getNumOperands() == 1 &&
!DAG.canCreateUndefOrPoison(N0, /*PoisonOnly*/ false) && N0->hasOneUse())
return DAG.getNode(N0.getOpcode(), SDLoc(N0), N->getValueType(0),
- DAG.getNode(ISD::FREEZE, SDLoc(N0),
- N0.getOperand(0).getValueType(),
- N0.getOperand(0)));
+ DAG.getFreeze(N0.getOperand(0)));
return SDValue();
}
More information about the llvm-commits
mailing list