diff options
author | Florian Hahn <flo@fhahn.com> | 2019-01-18 18:37:38 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-01-18 18:37:38 +0000 |
commit | dc4e1547207fa31d80e423744b834291a69f6484 (patch) | |
tree | dc15dbf739dfd376133928db66657335b93128f8 /llvm/lib/CodeGen | |
parent | b9d4461f9f166e22b90f7728a85c30bebdde6abf (diff) | |
download | bcm5719-llvm-dc4e1547207fa31d80e423744b834291a69f6484.tar.gz bcm5719-llvm-dc4e1547207fa31d80e423744b834291a69f6484.zip |
[SelectionDAG] Split very large token factors for chained stores to 64k chunks.
Similar to D55073. Without this change, the DAG combiner crashes on code
with more than 64k of stores in a single basic block that form parallelizable
chains.
No test case, as it would be very IR file.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D56740
llvm-svn: 351571
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index ff5505c9772..416f535870a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -19349,7 +19349,7 @@ bool DAGCombiner::parallelizeChainedStores(StoreSDNode *St) { if (AddNewChain) TFOps.insert(TFOps.begin(), NewChain); - SDValue TF = DAG.getNode(ISD::TokenFactor, SDLoc(STChain), MVT::Other, TFOps); + SDValue TF = DAG.getTokenFactor(SDLoc(STChain), TFOps); CombineTo(St, TF); AddToWorklist(STChain); |