Skip to content

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.

2 participants