You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
InstCombine introduces an incorrect use of a local after its storage has ended #78192
Is the cause of the unsoundness in this code? I haven't done MIR stuff before, but it looks like to me like it's not checking that the storage is live...
Activity
tmiasko commentedon Oct 21, 2020
I will open a PR to disable problematic part of InstCombine for now.
LeSeulArtichaut commentedon Oct 21, 2020
Did you bisect the regression to #76683?
Auto merge of rust-lang#78195 - tmiasko:instcombine, r=jonas-schievink
spastorino commentedon Oct 21, 2020
I see that we've disabled the optimization, can't we also add a regression test for it? cc @tmiasko
EDIT (camelid): See the relevant discussion in wg-prioritization.
spastorino commentedon Oct 21, 2020
Assigning
P-criticalas discussed as part of the Prioritization Working Group procedure and removingI-prioritize.camelid commentedon Oct 21, 2020
Is the cause of the unsoundness in this code? I haven't done MIR stuff before, but it looks like to me like it's not checking that the storage is live...
rust/compiler/rustc_mir/src/transform/instcombine.rs
Lines 149 to 167 in 1d27267
24 remaining items
simonvandel commentedon Oct 27, 2020
I will have time to investigate this after today 1700(utc+1). If anyone finds the cause or arrives at a solution before, go ahead and open a PR.
jonas-schievink commentedon Oct 27, 2020
This optimization should stay disabled by default until we're sure that it is sound.
jonas-schievink commentedon Oct 27, 2020
Opened #78434 to disable it
Auto merge of rust-lang#78434 - jonas-schievink:disable-miropt, r=wes…
Fix rust-lang#78192
camelid commentedon Jan 23, 2021
Why was this reopened and then closed?
LeSeulArtichaut commentedon Jan 23, 2021
I reopened it after #78434 since the bug wasn't fixed, only disabled so it doesn't hit stable. Is it fixed now @tmiasko?
tmiasko commentedon Jan 23, 2021
I closed it because the code responsible is no longer there.