[DAGCombiner] allow undef elts in vector fabs/fneg matching
authorSanjay Patel <spatel@rotateright.com>
Sun, 7 Oct 2018 15:32:06 +0000 (15:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 7 Oct 2018 15:32:06 +0000 (15:32 +0000)
commit0b74c840ddb09c71e15bb383d0aad3526db5fe72
treebc9cd13ed0ad4fe651d0febdfe41c0bb336c8d29
parent46a9dc2e3e2c687a43abbed253d0298fbcc67baa
[DAGCombiner] allow undef elts in vector fabs/fneg matching

This change is proposed as a part of D44548, but we
need this independently to avoid regressions from improved
undef propagation in SimplifyDemandedVectorElts().

llvm-svn: 343940
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/fp-logic.ll