Skip to content

Conversation

XChy
Copy link
Member

@XChy XChy commented Oct 7, 2025

Threading may fail due to legality and profitability checks. This patch preserves the analysis if no threading happens.

@XChy XChy requested review from nikic and UsmanNadeem October 7, 2025 08:22
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.

LGTM

if (isLegalAndProfitableToTransform()) {
createAllExitPaths();
MadeChange = true;
NumTransforms++;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: You could just return true here and return false below. No need for the variable.

@XChy XChy enabled auto-merge (squash) October 7, 2025 09:56
@XChy XChy merged commit f0a787b into llvm:main Oct 7, 2025
9 checks passed
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