@@ -701,13 +701,12 @@ impl<'a, 'tcx, V: CodegenObject> OperandValue<V> {
701
701
}
702
702
703
703
impl < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > FunctionCx < ' a , ' tcx , Bx > {
704
+ #[ instrument( level = "debug" , skip( self , bx) , ret) ]
704
705
fn maybe_codegen_consume_direct (
705
706
& mut self ,
706
707
bx : & mut Bx ,
707
708
place_ref : mir:: PlaceRef < ' tcx > ,
708
709
) -> Option < OperandRef < ' tcx , Bx :: Value > > {
709
- debug ! ( "maybe_codegen_consume_direct(place_ref={:?})" , place_ref) ;
710
-
711
710
match self . locals [ place_ref. local ] {
712
711
LocalRef :: Operand ( mut o) => {
713
712
// Moves out of scalar and scalar pair fields are trivial.
@@ -750,13 +749,12 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
750
749
}
751
750
}
752
751
752
+ #[ instrument( level = "debug" , skip( self , bx) , ret) ]
753
753
pub fn codegen_consume (
754
754
& mut self ,
755
755
bx : & mut Bx ,
756
756
place_ref : mir:: PlaceRef < ' tcx > ,
757
757
) -> OperandRef < ' tcx , Bx :: Value > {
758
- debug ! ( "codegen_consume(place_ref={:?})" , place_ref) ;
759
-
760
758
let ty = self . monomorphized_place_ty ( place_ref) ;
761
759
let layout = bx. cx ( ) . layout_of ( ty) ;
762
760
@@ -775,13 +773,12 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
775
773
bx. load_operand ( place)
776
774
}
777
775
776
+ #[ instrument( level = "debug" , skip( self , bx) , ret) ]
778
777
pub fn codegen_operand (
779
778
& mut self ,
780
779
bx : & mut Bx ,
781
780
operand : & mir:: Operand < ' tcx > ,
782
781
) -> OperandRef < ' tcx , Bx :: Value > {
783
- debug ! ( "codegen_operand(operand={:?})" , operand) ;
784
-
785
782
match * operand {
786
783
mir:: Operand :: Copy ( ref place) | mir:: Operand :: Move ( ref place) => {
787
784
self . codegen_consume ( bx, place. as_ref ( ) )
0 commit comments