Skip to content

Conversation

s-barannikov
Copy link
Contributor

Don't emit CFI instructions that will be skipped by AsmPrinter. Also, use a helper class to simplify emission.

As a side effect, this seems to unblock delay slot filler optimization on some tests, though it is not obvious to me whether the transformations are legitimate.

Similar to #135845 and #136060.

Don't emit CFI instructions when they will be skipped by AsmPrinter.
Also, use a helper class to simplify emission.

As a side effect, this seems to have unblocked delay slot filler
optimization on some tests, though it is not obvious to me whether
the transformations are legitimate.

Similar to llvm#135845 and llvm#136060.
@s-barannikov s-barannikov requested review from MaskRay and yingopq April 17, 2025 08:41
; GPR: not $[[GPRCC]], $[[GPRCC]]
; 32-GPR: bnez $[[GPRCC]], $BB0_2
; 64-GPR: bnezc $[[GPRCC]], .LBB0_2
; 64-GPR: bnez $[[GPRCC]], .LBB0_2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have an explanation for changes in this test. Does this look fine?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is better to add an explanation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll investigate.

@s-barannikov s-barannikov requested a review from wzssyqa April 17, 2025 10:09
@s-barannikov
Copy link
Contributor Author

I'll commit the NFC change separately to simplify the review.

@s-barannikov s-barannikov marked this pull request as draft April 17, 2025 13:10
@s-barannikov
Copy link
Contributor Author

Extracted the NFC part into #136242. I'll let it hang for a couple of days in case there are active reviewers.

# Conflicts:
#	llvm/lib/Target/Mips/Mips16FrameLowering.cpp
#	llvm/lib/Target/Mips/MipsSEFrameLowering.cpp
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.

2 participants