Skip to content

Conversation

SixWeining
Copy link
Contributor

Fix #72046

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

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

This isn't the right fix. Instead, there should be a dropPoisonGeneratingFlags() call at the point where the zext operand is updated. The code is pretty convoluted, but I think this happens inside this method:

Value *TypePromotionHelper::promoteOperandForOther(

Also, this PR is missing a test.

@nikic
Copy link
Contributor

nikic commented Nov 13, 2023

I've proposed a possible alternative at #72103. Instead of dropping the flag, we can avoid reusing the instruction in the first place.

@SixWeining
Copy link
Contributor Author

@nikic Thanks, I will close this PR.

@SixWeining SixWeining closed this Nov 14, 2023
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.

[LoongArch] Broken code is generated after #71534
2 participants