From 5df6a2a6ac67918e3b1950ac6377a61567eb0d16 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 12 Nov 2025 16:41:01 -0800 Subject: [PATCH 1/2] [SelectionDAGISel] Const correct ChainNodesMatched argument to HandleMergeInputChains. NFC --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ece50ed95fc49..e1ffc5dcc8f80 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2748,7 +2748,7 @@ void SelectionDAGISel::UpdateChains( /// induce cycles in the DAG) and if so, creating a TokenFactor node. that will /// be used as the input node chain for the generated nodes. static SDValue -HandleMergeInputChains(SmallVectorImpl &ChainNodesMatched, +HandleMergeInputChains(const SmallVectorImpl &ChainNodesMatched, SelectionDAG *CurDAG) { SmallPtrSet Visited; From e3e5fe6f154861ac811fee1bb1050ba1662266b8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 12 Nov 2025 21:51:56 -0800 Subject: [PATCH 2/2] fixup! clang-format --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e1ffc5dcc8f80..d831502336815 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2748,7 +2748,7 @@ void SelectionDAGISel::UpdateChains( /// induce cycles in the DAG) and if so, creating a TokenFactor node. that will /// be used as the input node chain for the generated nodes. static SDValue -HandleMergeInputChains(const SmallVectorImpl &ChainNodesMatched, +HandleMergeInputChains(const SmallVectorImpl &ChainNodesMatched, SelectionDAG *CurDAG) { SmallPtrSet Visited;