[SelectionDAG] fold insert subvector of undef into undef
authorSanjay Patel <spatel@rotateright.com>
Tue, 21 May 2019 18:53:53 +0000 (18:53 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 21 May 2019 18:53:53 +0000 (18:53 +0000)
commit10f6b3989959978e41c2092251a4359fef30d99f
tree429046d5f78c1c9193c67818713bf9f8afcfd551
parent76e5a1d3c3b107646d88cf91059972c2a2a5f163
[SelectionDAG] fold insert subvector of undef into undef

DAGCombiner simplifies this more liberally as:
  // If inserting an UNDEF, just return the original vector.
  if (N1.isUndef())
    return N0;

So there's no way to make this visible in output AFAIK, but
doing this at node creation time should be slightly more efficient.

llvm-svn: 361287
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp