File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4165,11 +4165,13 @@ impl Function {
41654165 // missing location.
41664166 let mut assigned_in = vec ! [ None ; self . num_blocks( ) ] ;
41674167 let rpo = self . rpo ( ) ;
4168- // Begin with every block having every variable defined, except for the entry block , which
4169- // starts with nothing defined.
4170- assigned_in [ self . entry_block . 0 ] = Some ( InsnSet :: with_capacity ( self . insns . len ( ) ) ) ;
4168+ // Begin with every block having every variable defined, except for the entry blocks , which
4169+ // start with nothing defined.
4170+ let entry_blocks = self . entry_blocks ( ) ;
41714171 for & block in & rpo {
4172- if block != self . entry_block {
4172+ if entry_blocks. contains ( & block) {
4173+ assigned_in[ block. 0 ] = Some ( InsnSet :: with_capacity ( self . insns . len ( ) ) ) ;
4174+ } else {
41734175 let mut all_ones = InsnSet :: with_capacity ( self . insns . len ( ) ) ;
41744176 all_ones. insert_all ( ) ;
41754177 assigned_in[ block. 0 ] = Some ( all_ones) ;
You can’t perform that action at this time.
0 commit comments