Skip to content
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

[llvm/unittests] Reset the IsSSA property when using finalizeBundle() #77469

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

ssahasra
Copy link
Collaborator

@ssahasra ssahasra commented Jan 9, 2024

No description provided.

@@ -156,6 +156,7 @@ static void testHandleMoveIntoNewBundle(MachineFunction &MF, LiveIntervals &LIS,

// Build bundle
finalizeBundle(MBB, I, std::next(ToInstr.getIterator()));
MF.getProperties().reset(MachineFunctionProperties::Property::IsSSA);
Copy link
Contributor

Choose a reason for hiding this comment

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

The test probably shouldn't have had IsSSA in the first place

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

IsSSA is computed by the MIRParser

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, which is buggy. It tries to guess but I think the MIR parser needs an explicit IsSSA property.

Copy link
Contributor

Choose a reason for hiding this comment

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

By buggy I mean assume SSA by default runs into these sorts of issues. Tests have a definite SSAness which it gets wrong. You could just as well clear this before finalizeBundle

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess @yashssh ran into a similar situation once and was trying to fix the default isSSA property assumed by MIRParser. Wasn't that ever landed?

@ssahasra ssahasra merged commit db1d9ad into llvm:main Jan 9, 2024
1 of 4 checks passed
@ssahasra ssahasra deleted the ssahasra/reset-ssa-in-test branch January 10, 2024 05:51
justinfargnoli pushed a commit to justinfargnoli/llvm-project that referenced this pull request Jan 28, 2024
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.

None yet

3 participants