@@ -23,7 +23,7 @@ use super::{
2323 parallel_copy:: { self , RegScavenger } ,
2424 redundant_copy:: { RedundantCopyTracker , RedundantCopyVerdict } ,
2525 types:: {
26- AssignmentCopySource , BlockExitGhostCopy , InstrSlot , LiveRange , ParallelCopies ,
26+ BlockExitGhostCopy , CopySourceAssignment , InstrSlot , LiveRange , ParallelCopies ,
2727 ParallelCopy , ParallelCopyPhase , ProgramPoint , TaggedAssignmentCopy ,
2828 } ,
2929 Assignment , InstrAssignmentData , OperandAssignment , SpillSlot , SpillSlotData ,
@@ -38,7 +38,7 @@ struct BlockParamEdgeKey {
3838 to_vreg : VirtReg ,
3939}
4040
41- type BlockParamOutMap = FxHashMap < BlockParamEdgeKey , ( VirtReg , AssignmentCopySource ) > ;
41+ type BlockParamOutMap = FxHashMap < BlockParamEdgeKey , ( VirtReg , CopySourceAssignment ) > ;
4242
4343struct BlockParamIn {
4444 block : Block ,
@@ -53,10 +53,10 @@ fn record_parallel_copy(
5353 instr : Instr ,
5454 phase : ParallelCopyPhase ,
5555 class : RegClass ,
56- from : AssignmentCopySource ,
56+ from : CopySourceAssignment ,
5757 to : OperandAssignment ,
5858) {
59- if from != AssignmentCopySource :: Operand ( to) {
59+ if from != CopySourceAssignment :: Operand ( to) {
6060 copies. push ( ParallelCopy {
6161 instr,
6262 phase,
@@ -153,7 +153,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
153153 Instr :: new ( 0 ) ,
154154 ParallelCopyPhase :: Before ,
155155 self . lir . vreg_class ( block_param) ,
156- AssignmentCopySource :: Operand ( OperandAssignment :: Reg ( preg) ) ,
156+ CopySourceAssignment :: Operand ( OperandAssignment :: Reg ( preg) ) ,
157157 assignment,
158158 ) ;
159159 }
@@ -193,8 +193,8 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
193193 ) {
194194 trace ! ( "collecting intra-block copies: {vreg}" ) ;
195195
196- let mut cur_spill: Option < ( LiveRange , AssignmentCopySource ) > = None ;
197- let mut last_canonical_range: Option < ( LiveRange , AssignmentCopySource ) > = None ;
196+ let mut cur_spill: Option < ( LiveRange , CopySourceAssignment ) > = None ;
197+ let mut last_canonical_range: Option < ( LiveRange , CopySourceAssignment ) > = None ;
198198
199199 for & range in ranges {
200200 let range_assignment = self . get_range_assignment ( range) ;
@@ -280,7 +280,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
280280 instr. next ( ) ,
281281 ParallelCopyPhase :: Before ,
282282 class,
283- AssignmentCopySource :: Operand ( range_assignment) ,
283+ CopySourceAssignment :: Operand ( range_assignment) ,
284284 OperandAssignment :: Spill ( spill) ,
285285 ) ;
286286 }
@@ -432,7 +432,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
432432 panic ! ( "vreg {vreg} not live-out across edge {pred} -> {block}" ) ;
433433 } ;
434434
435- if pred_assignment == AssignmentCopySource :: Operand ( assignment) {
435+ if pred_assignment == CopySourceAssignment :: Operand ( assignment) {
436436 // Nothing to copy here, don't bother trying to figure out where.
437437 continue ;
438438 }
@@ -553,7 +553,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
553553 instr. next ( ) ,
554554 ParallelCopyPhase :: Before ,
555555 self . lir . vreg_class ( vreg) ,
556- AssignmentCopySource :: Operand ( OperandAssignment :: Reg ( preg) ) ,
556+ CopySourceAssignment :: Operand ( OperandAssignment :: Reg ( preg) ) ,
557557 range_assignment,
558558 ) ;
559559 } else {
@@ -596,7 +596,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
596596 instr,
597597 ParallelCopyPhase :: PreCopy ,
598598 self . lir . vreg_class ( vreg) ,
599- AssignmentCopySource :: Operand ( range_assignment) ,
599+ CopySourceAssignment :: Operand ( range_assignment) ,
600600 OperandAssignment :: Reg ( preg) ,
601601 ) ;
602602 }
@@ -609,7 +609,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
609609 instr,
610610 ParallelCopyPhase :: PreCopy ,
611611 self . lir . vreg_class ( vreg) ,
612- AssignmentCopySource :: Operand ( range_assignment) ,
612+ CopySourceAssignment :: Operand ( range_assignment) ,
613613 def_assignment,
614614 ) ;
615615 assignment. assign_instr_use ( instr, i, def_assignment) ;
@@ -657,10 +657,10 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
657657 . expect ( "expected range assignment to be an operand" )
658658 }
659659
660- fn get_range_assignment ( & self , range : LiveRange ) -> AssignmentCopySource {
660+ fn get_range_assignment ( & self , range : LiveRange ) -> CopySourceAssignment {
661661 let fragment_data = & self . live_set_fragments [ self . live_ranges [ range] . fragment ] ;
662662 match fragment_data. assignment . expand ( ) {
663- Some ( preg) => AssignmentCopySource :: Operand ( OperandAssignment :: Reg ( preg) ) ,
663+ Some ( preg) => CopySourceAssignment :: Operand ( OperandAssignment :: Reg ( preg) ) ,
664664 None => {
665665 debug_assert ! ( fragment_data. flags. contains( LiveSetFragmentFlags :: SPILLED ) ) ;
666666
@@ -670,7 +670,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
670670 {
671671 let vreg = self . live_ranges [ range] . vreg ;
672672 let def_instr = self . remattable_vreg_defs [ vreg] . unwrap ( ) ;
673- return AssignmentCopySource :: Remat ( def_instr) ;
673+ return CopySourceAssignment :: Remat ( def_instr) ;
674674 }
675675
676676 let live_set_data = & self . live_sets [ fragment_data. live_set ] ;
@@ -688,7 +688,7 @@ impl<M: MachineRegalloc> RegAllocContext<'_, M> {
688688 ) ;
689689 }
690690
691- AssignmentCopySource :: Operand ( OperandAssignment :: Spill (
691+ CopySourceAssignment :: Operand ( OperandAssignment :: Spill (
692692 self . live_sets [ fragment_data. live_set ] . spill_slot . unwrap ( ) ,
693693 ) )
694694 }
@@ -846,7 +846,7 @@ impl<'a, M: MachineRegalloc> AssignedRegScavenger<'a, M> {
846846 // before `pos`. Destinations need to be marked as used for correct behavior with block
847847 // live-outs and outgoing params, which might not be live at all at `pos`.
848848 for copy in copies {
849- if let AssignmentCopySource :: Operand ( OperandAssignment :: Reg ( from) ) = copy. from {
849+ if let CopySourceAssignment :: Operand ( OperandAssignment :: Reg ( from) ) = copy. from {
850850 self . used_tmp_regs . insert ( from) ;
851851 }
852852 if let OperandAssignment :: Reg ( to) = copy. to {
0 commit comments