Rihanna performs her new single, “Diamond,” on X-Factor.