Implemented constant folding for MaxFD, MinFD. Reviewed-by: thartmann, bsrbnd, pli
Reviewed-by: darcy, ihse