Skip to content

[CIR][NFC] Conform if/else lowering order to match clang's output #1107

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
Nov 12, 2024

Conversation

orbiri
Copy link
Collaborator

@orbiri orbiri commented Nov 11, 2024

Before the commit, when flattening if/else clauses - the else body came before the "then" body, as opposed to clang's output order.

This commit reverses this and hopefully allows easier comparisson between clang's output and cir's.

Before the commit, when flattening if/else clauses - the else body came before the "then" body, as opposed to clang's output order.

This commit reverses this and hopefully allows easier comparisson between clang's output and cir's.
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

Much better indeed, thanks

@orbiri
Copy link
Collaborator Author

orbiri commented Nov 12, 2024

Would appreciate a merge 🙏

@smeenai smeenai merged commit 5c5d584 into llvm:main Nov 12, 2024
7 checks passed
@lanza
Copy link
Member

lanza commented Nov 12, 2024

@orbiri I gave you write access so you should be able to merge future PRs!

@orbiri
Copy link
Collaborator Author

orbiri commented Nov 12, 2024

Much appreciated 😍

lanza pushed a commit that referenced this pull request Mar 18, 2025
)

Before the commit, when flattening if/else clauses - the else body came
before the "then" body, as opposed to clang's output order.

This commit reverses this and hopefully allows easier comparisson
between clang's output and cir's.
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.

4 participants