-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reinstate while loop in deaggregator pass #38265
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
Conversation
r? @nrc (rust_highfive has picked a reviewer for you, use r? to override) |
The diff is very small when ignoring whitespace: https://github.com/rust-lang/rust/pull/38265/files?w=1 cc @scottcarr as previous author of the pass. |
Note: This is just fixing logic errors for a pass that is (so far) disabled by default. This was like the first step to be able to work on other things close to this pass. |
This looks correct to me. r+. |
@bors r=nagisa |
📌 Commit e3526af has been approved by |
A previous commit must have removed the `while let` loop here by mistake; for each basic block, it should find and deaggregate multiple statements in their index order, and the `curr` index tracks the progress through the block. This fixes both the case of deaggregating statements in separate basic blocks (preserving `curr` could prevent that) as well as multiple times in the same block (missing loop prevented that).
e3526af
to
fbc3f11
Compare
Amended to fix a tidy failure (line longer than 100) |
@bors r=nagisa |
📌 Commit fbc3f11 has been approved by |
⌛ Testing commit fbc3f11 with merge 8f66e55... |
💔 Test failed - auto-linux-32-opt |
⌛ Testing commit fbc3f11 with merge 3db197a... |
Reinstate while loop in deaggregator pass A previous commit must have removed the `while let` loop here by mistake; for each basic block, it should find and deaggregate multiple statements in their index order, and the `curr` index tracks the progress through the block. This fixes both the case of deaggregating statements in separate basic blocks (preserving `curr` could prevent that) as well as multiple times in the same block (missing loop prevented that). The loop was lost in commit bda46c2.
A previous commit must have removed the
while let
loop here bymistake; for each basic block, it should find and deaggregate multiple
statements in their index order, and the
curr
index tracks theprogress through the block.
This fixes both the case of deaggregating statements in separate
basic blocks (preserving
curr
could prevent that) as wellas multiple times in the same block (missing loop prevented that).
The loop was lost in commit bda46c2.