Apparently I messed up squashing two consecutive commits. llvm-svn: 303516
Taken from PR32845. Dan removed the most dominating leader check in r303443, but we check this test anyway to make sure things don't regress. llvm-svn: 303515