We have 3 run lines.
; RUN: opt ..... | FileChek --check-prefixes=A,D
; RUN: opt ..... | FileChek --check-prefixes=B,C
; RUN: opt ..... | FileChek --check-prefixes=A,B
For a function, three run lines generates the same output
but this is just a coincidence so check lines are correct.
Before this patch generated output is.
; A-LABEL: define .....
; A ......
; B-LABEL: define .....
; B ......
The third run line is going to fail since it can't match the "B-LABEL"
check since the "A-LABEL" line have consumed the function signature
This patch corrects this issue by excluding all checkprefixes
that exist in the same run line as the choosen prefix.
For "-LABEL" generation this is shouldn't affect existing checks.
There is no way that tests that are affected by this change are
[WIP] Are other users of common.py effected by this change ?