Skip to content

Conversation

MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented Jan 12, 2022

This PR is basically a glorified cherry-pick of 092beb8. The code was written as a response to one of the reviews on #6825, but the commit had to be reverted because it caused a loss of dataflow on some projects.

I've now looked at those results, and it turns out they were all FPs caused by weird interaction with phi nodes. e8afec4 demonstrates the kind of false-positive that underlies all of the lost results, and 25253c7 fixes the false-positive by doing exactly what 092beb8 did.

Performance on DCA looks fine.

@MathiasVP MathiasVP added the C++ label Jan 12, 2022
@MathiasVP MathiasVP force-pushed the store-dest-should-not-be-use branch from f347477 to 25253c7 Compare January 14, 2022 13:40
@MathiasVP MathiasVP marked this pull request as ready for review January 14, 2022 14:24
@MathiasVP MathiasVP requested a review from a team as a code owner January 14, 2022 14:24
load.getAUse().getUse() instanceof InitializeIndirectionInstruction
) and
// Don't include this operand as a use if the only use of the address is for a write
// that definately overrides a variable.
Copy link
Contributor

Choose a reason for hiding this comment

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

definately -> definitely

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Fixed in e1598ab.

@rdmarsh2 rdmarsh2 merged commit 024bd27 into github:main Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants