Anderson at this point in his career is 15 - 0 in the UFC. If he lost his next fight, nothing could change that. He's beating multiple world champion's, dominated the Welterweight, middleweight, and 2 fights at LHW. His legacy is cemented.
It always does. Look at Fedor.
Fedors legacy was tarnished by him not fighting in the UFC, not his losses.