Skip to content
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

Ruby: Adopt shared SSA data-flow integration #16937

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Jul 9, 2024

This PR adopts the newly introduced shared SSA data-flow integration layer.

@github-actions github-actions bot added the Ruby label Jul 9, 2024
Comment on lines 1329 to 1332
e = DfInput::getARead(_)
or
DfInput::ssaDefAssigns(_, e) and
isPost = false

Check warning

Code scanning / CodeQL

Var only used in one side of disjunct. Warning

The
variable isPost
is only used in one side of disjunct.
shared/ssa/codeql/ssa/Ssa.qll Fixed Show fixed Hide fixed
@hvitved hvitved force-pushed the ruby/ssa-integration branch 2 times, most recently from bc543bc to 1090f52 Compare July 11, 2024 09:51
Comment on lines 1330 to 1339
e = DfInput::getARead(_)
or
DfInput::ssaDefAssigns(_, e) and
isPost = false

Check warning

Code scanning / CodeQL

Var only used in one side of disjunct. Warning

The
variable isPost
is only used in one side of disjunct.
@hvitved hvitved force-pushed the ruby/ssa-integration branch 2 times, most recently from 7280dbc to e17c067 Compare July 11, 2024 19:41
Comment on lines 1356 to 1340
e = DfInput::getARead(_)
or
exists(DefinitionExt def |
DfInput::ssaDefAssigns(def, e) and
hasCertainRead(def) and
isPost = false
)

Check warning

Code scanning / CodeQL

Var only used in one side of disjunct. Warning

The
variable isPost
is only used in one side of disjunct.

private newtype TNode =
TParamNode(DfInput::Parameter p) {
exists(WriteDefinition def | DfInput::ssaDefInitializesParam(def, p))

Check warning

Code scanning / CodeQL

Omittable 'exists' variable Warning

This exists variable can be omitted by using a don't-care expression
in this argument
.
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Jul 12, 2024
@hvitved hvitved marked this pull request as ready for review July 12, 2024 19:01
@hvitved hvitved requested a review from a team as a code owner July 12, 2024 19:01
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.

Looks plausible to me.

@hvitved hvitved merged commit 87c5627 into github:main Aug 6, 2024
23 checks passed
@hvitved hvitved deleted the ruby/ssa-integration branch August 6, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants