Remove dead SD nodes after the combining pass. Fixes PR12201.