Created patterns to match subtraction of a variable from a constant to reduce the number of instructions and needed registers. The idea is to load the complement and use addition.
For example, for (sub i64 63, x):
before the change, the following is generated:
lghi %r0, 63 sgr %r0, %r2 lgr %r2, %r0
after the change, the following is generated (less instructions):
lghi %r0, 63 sgrk %r2, %r0, %r2