fitzgen opened PR #2293 from souper-no-assign-constant to main:
It turns out that Souper does not allow a constant to be assigned to a variable,
they may only be used as operands. The 2.0.0 version of thesouper-ircrate
correctly reflects this. In thecranelift_codegen::souper_harvestmodule, we
need to modify our Souper IR harvester so that it delays convertingiconstand
bconstinto Souper IR until their values are used as operands. Finally, some
unit tests in thepeepmatic-soupercrate need some small updates as well.@iximeow could you take a look at this? Thanks!
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen requested iximeow for a review on PR #2293.
fitzgen updated PR #2293 from souper-no-assign-constant to main:
It turns out that Souper does not allow a constant to be assigned to a variable,
they may only be used as operands. The 2.0.0 version of thesouper-ircrate
correctly reflects this. In thecranelift_codegen::souper_harvestmodule, we
need to modify our Souper IR harvester so that it delays convertingiconstand
bconstinto Souper IR until their values are used as operands. Finally, some
unit tests in thepeepmatic-soupercrate need some small updates as well.@iximeow could you take a look at this? Thanks!
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen updated PR #2293 from souper-no-assign-constant to main:
It turns out that Souper does not allow a constant to be assigned to a variable,
they may only be used as operands. The 2.0.0 version of thesouper-ircrate
correctly reflects this. In thecranelift_codegen::souper_harvestmodule, we
need to modify our Souper IR harvester so that it delays convertingiconstand
bconstinto Souper IR until their values are used as operands. Finally, some
unit tests in thepeepmatic-soupercrate need some small updates as well.@iximeow could you take a look at this? Thanks!
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen updated PR #2293 from souper-no-assign-constant to main:
It turns out that Souper does not allow a constant to be assigned to a variable,
they may only be used as operands. The 2.0.0 version of thesouper-ircrate
correctly reflects this. In thecranelift_codegen::souper_harvestmodule, we
need to modify our Souper IR harvester so that it delays convertingiconstand
bconstinto Souper IR until their values are used as operands. Finally, some
unit tests in thepeepmatic-soupercrate need some small updates as well.@iximeow could you take a look at this? Thanks!
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen requested alexcrichton and iximeow for a review on PR #2293.
alexcrichton submitted PR Review.
fitzgen updated PR #2293 from souper-no-assign-constant to main:
It turns out that Souper does not allow a constant to be assigned to a variable,
they may only be used as operands. The 2.0.0 version of thesouper-ircrate
correctly reflects this. In thecranelift_codegen::souper_harvestmodule, we
need to modify our Souper IR harvester so that it delays convertingiconstand
bconstinto Souper IR until their values are used as operands. Finally, some
unit tests in thepeepmatic-soupercrate need some small updates as well.@iximeow could you take a look at this? Thanks!
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen merged PR #2293.
Last updated: Dec 06 2025 at 06:05 UTC