Bug 964180 - fix AMD with optimize