[SDAG] refactor folds for scalar-to-vector; NFCI
authorSanjay Patel <spatel@rotateright.com>
Tue, 25 Oct 2022 16:48:46 +0000 (12:48 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 25 Oct 2022 16:53:46 +0000 (12:53 -0400)
commitb179351ad49e59c525c1030670a7a14efd80998b
tree3ec0db10a5a47a096edfa4ff9f8c7b00061d4e9f
parent0057756fd40c44e4aa00b08c63b0436d5441105d
[SDAG] refactor folds for scalar-to-vector; NFCI

Fix typos, add comments, improve variable names,
rearrange code, add early exits.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp