remove side-effect-free nodes in registerize; enable registerize in native optimizer