optabgen.c will tell you the optimizer function for each OP