@@ -1487,9 +1487,7 @@ impl<'tcx> VnState<'_, 'tcx> {
14871487 #[ instrument( level = "trace" , skip( self , index) , ret) ]
14881488 fn try_as_constant ( & mut self , index : VnIndex ) -> Option < ConstOperand < ' tcx > > {
14891489 // This was already constant in MIR, do not change it.
1490- let value = self . get ( index) ;
1491- debug ! ( ?index, ?value) ;
1492- if let Value :: Constant { value, disambiguator : _ } = * value
1490+ if let Value :: Constant { value, disambiguator : _ } = * self . get ( index)
14931491 // If the constant is not deterministic, adding an additional mention of it in MIR will
14941492 // not give the same value as the former mention.
14951493 && value. is_deterministic ( )
@@ -1557,10 +1555,8 @@ impl<'tcx> MutVisitor<'tcx> for VnState<'_, 'tcx> {
15571555 . as_local ( )
15581556 . and_then ( |local| self . locals [ local] )
15591557 . or_else ( || self . simplify_rvalue ( rvalue, location) ) ;
1560- debug ! ( ?value) ;
15611558 let Some ( value) = value else { return } ;
15621559
1563- debug ! ( before_rvalue = ?rvalue) ;
15641560 // De-duplicate locals has the same arrays assigned to prevent code bloat.
15651561 let disallowed_duplicated_array = if rvalue. ty ( self . local_decls , self . tcx ) . is_array ( )
15661562 && let Some ( locals) = self . rev_locals . get ( value) . as_deref ( )
@@ -1579,7 +1575,6 @@ impl<'tcx> MutVisitor<'tcx> for VnState<'_, 'tcx> {
15791575 * rvalue = Rvalue :: Use ( Operand :: Copy ( local. into ( ) ) ) ;
15801576 self . reused_locals . insert ( local) ;
15811577 }
1582- debug ! ( after_rvalue = ?rvalue) ;
15831578
15841579 return ;
15851580 }
0 commit comments