When we appended check lines at the end we could not share prefixes before. This patch should make it possible and allow us to reduce some check line counts (especially for Clang/OpenMP tests). See also: https://reviews.llvm.org/D128686 Differential Revision: https://reviews.llvm.org/D128684