LegalizeDAG: allow libcalls for max/min atomic operations