[DAG] Move select(cc, binop(), binop()) folds into DAGCombiner::foldSelectOfBinops...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 18 Jul 2021 13:54:25 +0000 (14:54 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 18 Jul 2021 13:54:41 +0000 (14:54 +0100)
commit1a6a8443c2263fdd3f5efecd535f2f85fc432aee
treea7b2ac1cd73d69d1c3ac86510920a4399832984f
parent4357cfc7929ec794b4364846fd78f73c8d4f41cd
[DAG] Move select(cc, binop(), binop()) folds into DAGCombiner::foldSelectOfBinops. NFCI.

I'm going to extend the functionality started in D106058 so move the folds into their own method to reduce the amount of code in DAGCombiner::visitSELECT
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp