[DAGCombiner] Use getTokenFactor in a few more cases.
authorFlorian Hahn <flo@fhahn.com>
Thu, 21 Mar 2019 14:32:09 +0000 (14:32 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 21 Mar 2019 14:32:09 +0000 (14:32 +0000)
commit71033f29873626604787002972c1609295619616
tree15c343659e5320398de3a0495fbd0a1947e8095e
parentda4992bf8ddb1586268c1aea8dbc6caa81b95030
[DAGCombiner] Use getTokenFactor in a few more cases.

SDNodes can only have 64k operands and for some inputs (e.g. large
number of stores), we can reach this limit when creating TokenFactor
nodes. This patch is a follow up to D56740 and updates a few more places
that potentially can create TokenFactors with too many operands.

Reviewers: efriedma, craig.topper, aemerson, RKSimon

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D59156

llvm-svn: 356668
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp