canonicalizeLogicFirst reorders add, logic op for suitable
constants, and this commit makes this function pass through
nsw/nuw flags on the Add.
Alive2 verification for add, or -> or, add where add has nuw and nsw flags
Alive2 verification for add, xor -> xor, add where add has just nsw
Alive2 verification for add, and -> and, add where add has just nuw
Depends on D147566