Skip to content

Conversation

alanzhao1
Copy link
Contributor

The intent of the original regex doesn't work if, for example, the last RUN line was a pipe and FileCheck is in the next RUN line. See for example
function-specialization3.ll. To fix this we just replace the redirerect stdout to /dev/null with cat /dev/null, which works because it's effectively a no-op command that can be piped to or run standalone.

Tracking issue: #147390

The intent of the original regex doesn't work if, for example, the last
RUN line was a pipe and FileCheck is in the next RUN line. See for
example
[`function-specialization3.ll`](https://github.com/llvm/llvm-project/blob/a7c2ce6009a8034ebbf718c12a6e56c085036b57/llvm/test/Transforms/FunctionSpecialization/function-specialization3.ll).
To fix this we just replace the redirerect stdout to `/dev/null` with
`cat /dev/null`, which works because it's effectively a no-op command
that can be piped to or run standalone.

Tracking issue: llvm#147390
@alanzhao1 alanzhao1 requested a review from mtrofin September 4, 2025 23:49
Copy link

github-actions bot commented Sep 4, 2025

✅ With the latest revision this PR passed the Python code formatter.

Copy link
Member

@mtrofin mtrofin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants