Skip to content

[;SystemZ][z/OS] Fix llvm-ctxprof to open input files in text mode #109691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

zibi2
Copy link
Contributor

@zibi2 zibi2 commented Sep 23, 2024

Reading text files on z/OS relies on auto conversion to handle ASCII/EBCDIC correctly. For this to work files need to be opened in text mode is that is the type of the file. This PR fixes llvm-ctxprof utility in this regards which in turn fixes the following LIT failure on z/OS:

FAIL: LLVM :: Analysis/CtxProfAnalysis/flatten-zero-path.ll

@zibi2 zibi2 self-assigned this Sep 23, 2024
Copy link
Contributor

@abhina-sree abhina-sree left a comment

Choose a reason for hiding this comment

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

LGTM

@zibi2 zibi2 merged commit 0de1e3e into llvm:main Sep 24, 2024
9 checks passed
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