Elide useless assignment