Skip to content

Java: Minor fixup for SSA AdjacentUsesImpl::varBlockReaches#4246

Merged
aschackmull merged 2 commits intogithub:mainfrom
RasmusWL:java-fix-ssa-varBlockReaches
Sep 21, 2020
Merged

Java: Minor fixup for SSA AdjacentUsesImpl::varBlockReaches#4246
aschackmull merged 2 commits intogithub:mainfrom
RasmusWL:java-fix-ssa-varBlockReaches

Conversation

@RasmusWL
Copy link
Member

This should not change anything in regards to correctness overall -- what we really care about is varBlockStep, and that checks varOccursInBlock(v, b2). However, the comment is a bit easier to read together with the code now (and probably also gives slightly smaller predicate result size).

This should not change anything in regards to correctness overall -- what we
really care about is `varBlockStep`, and that checks `varOccursInBlock(v, b2)`.
However, the comment is a bit easier to read together with the code
now (and probably also gives slightly smaller predicate result size).
@github-actions github-actions bot added the Java label Sep 10, 2020
@RasmusWL RasmusWL marked this pull request as ready for review September 10, 2020 12:52
@RasmusWL RasmusWL requested a review from a team as a code owner September 10, 2020 12:52
@aschackmull
Copy link
Contributor

Change looks ok. The predicate does shrink a bit, which is always nice, and it doesn't appear to affect the join-order. Could you make the same change in BaseSSA.qll? Then I'll merge.

Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

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

Thanks!

@aschackmull aschackmull merged commit 4a3118b into github:main Sep 21, 2020
@RasmusWL RasmusWL deleted the java-fix-ssa-varBlockReaches branch September 21, 2020 11:28
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.

2 participants