Disable the SimplifyArmIdentity mir-opt
The optimization still has some bugs that need to be worked out such as #77359. We can try re-enabling this again after the known issues are resolved.
This commit is contained in:
parent
9cba260df0
commit
f9d7720be7
13 changed files with 195 additions and 152 deletions
|
@ -367,7 +367,12 @@ fn optimization_applies<'tcx>(
|
|||
}
|
||||
|
||||
impl<'tcx> MirPass<'tcx> for SimplifyArmIdentity {
|
||||
fn run_pass(&self, _tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
|
||||
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
|
||||
// FIXME(77359): This optimization can result in unsoundness.
|
||||
if !tcx.sess.opts.debugging_opts.unsound_mir_opts {
|
||||
return;
|
||||
}
|
||||
|
||||
trace!("running SimplifyArmIdentity on {:?}", source);
|
||||
let local_uses = LocalUseCounter::get_local_uses(body);
|
||||
let (basic_blocks, local_decls, debug_info) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue