You may try the following:
I need to use the carry chain logic. per the notes Arria10 does not support LPM_ADD_SUB. the example you posted says it will use LPM_ADD_SUB.
For more complete information about compiler optimizations, see our Optimization Notice.