If the source is undef, then just don't do anything.
This matches SelectionDAG's behaviour in SelectionDAG.cpp.
Also add a test showing that we do the right thing here. (irtranslator-memfunc-undef.ll)
|  Differential  D63095  
[GlobalISel] Translate memset/memmove/memcpy from undef ptrs into nothing Authored by paquette on Jun 10 2019, 1:42 PM. 
Details If the source is undef, then just don't do anything. This matches SelectionDAG's behaviour in SelectionDAG.cpp. Also add a test showing that we do the right thing here. (irtranslator-memfunc-undef.ll) 
Diff Detail Event Timeline
 | ||||||
This negative test seems fragile to me. Better to check entry, check-next ret or something?