Simplified dead code elimination