The test passes without this change, so it is unrelated to gather/scatter . I just revisited all my tests and thought that setting exact order of these 2 operations in incorrect. http://reviews.llvm.org/D7665 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/