[DAGCombiner] refactor folds for fadd (fmul X, -2.0), Y; NFCI
authorSanjay Patel <spatel@rotateright.com>
Mon, 15 Oct 2018 16:47:01 +0000 (16:47 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 15 Oct 2018 16:47:01 +0000 (16:47 +0000)
commit89e2197c3379b51a008e0ca899d51864c73f7822
tree222695fd565f1342f754ef1b17d8fae6a604e480
parent7cf5733f7f2a478e0c0fe1c584c12e9c62116d92
[DAGCombiner] refactor folds for fadd (fmul X, -2.0), Y; NFCI

The transform doesn't work if the vector constant has undef elements.

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