Skip to content

Re-apply "[AMDGPU][CodeGenPrepare] Narrow 64 bit math to 32 bit if profitable" #133893

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

Closed

Conversation

Shoreshen
Copy link
Contributor

Re-apply #130577

The old application failed in address sanitizer due to tryNarrowMathIfNoOverflow was called after I.eraseFromParent(); in AMDGPUCodeGenPrepareImpl::visitBinaryOperator, it create a use after free failure.

To fix this, tryNarrowMathIfNoOverflow will be called before and directly return if tryNarrowMathIfNoOverflow result in true.

@Shoreshen Shoreshen requested a review from shiltian April 1, 2025 10:10
@Shoreshen Shoreshen closed this Apr 1, 2025
@Shoreshen Shoreshen deleted the revert-133880-revert-130577-narrow-math-for-and-operand branch April 1, 2025 10:52
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.

1 participant