Skip to content

Handle predicate operator during inlining#544

Merged
guipublic merged 2 commits intomasterfrom
gd/issue_530
Dec 2, 2022
Merged

Handle predicate operator during inlining#544
guipublic merged 2 commits intomasterfrom
gd/issue_530

Conversation

@guipublic
Copy link
Contributor

Related issue(s)

Resolves #530

Description

Summary of changes

We handle predicate in binary instructions during inlining
I also added a small refactor of short_circuit() which was suggested in PR #437 review but was not implemented.

Test additions / changes

Regression test case added to 9_conditional

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

Looks good, just two small suggestions

Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

👍

@guipublic guipublic merged commit e239f41 into master Dec 2, 2022
@guipublic guipublic deleted the gd/issue_530 branch December 2, 2022 17:00
TomAFrench added a commit to TomAFrench/noir that referenced this pull request Dec 8, 2022
* master:
  Update workflow to run on 20.04 to fix CI (noir-lang#565)
  Split `util` module from noirc_frontend into new crate (noir-lang#560)
  update backend ref (noir-lang#561)
  Tell `clap` to use help text when no subcommand (noir-lang#559)
  moving noirup and build files out to separate repositories (noir-lang#557)
  Make `noirup` pull latest nightly build by default (noir-lang#470)
  Handle predicate operator during inlining (noir-lang#544)
  Add gitattributes (noir-lang#541)
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.

binop.predicate.is_none bug

3 participants