That's just really wrong. I don't see why it makes sense at all.
Good thing is, it wasn't miscompiling anything, because as long as
the operands of or had no common bits set, then the add
of these operands will never overflow: http://volta.cs.utah.edu:8080/z/gmt7Sy
IOW we need no detection, we are free to just set NUW+NSW.
But as rG39e3683534c83573da5c8b70c8adfb43948f601f shows,
even when the old code failed to "deduce" flags,
we'd eventually re-deduce them somewhere, later.
So let's just set them.