Avoid calculating max by calling min()
Avoid calculating max by calling min()

This should make it easier to simplify expressions such as
Min(a, Max(a, b)).

henry-nazare/llvm-sage,henry-nazare/llvm-sage