Perform dead code elimination on Core.