If mask is all ones we aren't going to keep any elements so we don't need a source. Currently we make sure we always have a source and even force the source to zero if it is received as undef.
This patch detects the all ones mask and forces the source to undef.