@@ -665,6 +665,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
665
665
a + b
666
666
}
667
667
668
+ // TODO(antoyo): should we also override the `unchecked_` versions?
668
669
fn sub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
669
670
self . gcc_sub ( a, b)
670
671
}
@@ -832,31 +833,6 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
832
833
set_rvalue_location ( self , self . gcc_not ( a) )
833
834
}
834
835
835
- fn unchecked_sadd ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
836
- set_rvalue_location ( self , self . gcc_add ( a, b) )
837
- }
838
-
839
- fn unchecked_uadd ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
840
- set_rvalue_location ( self , self . gcc_add ( a, b) )
841
- }
842
-
843
- fn unchecked_ssub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
844
- set_rvalue_location ( self , self . gcc_sub ( a, b) )
845
- }
846
-
847
- fn unchecked_usub ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
848
- // TODO(antoyo): should generate poison value?
849
- set_rvalue_location ( self , self . gcc_sub ( a, b) )
850
- }
851
-
852
- fn unchecked_smul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
853
- set_rvalue_location ( self , self . gcc_mul ( a, b) )
854
- }
855
-
856
- fn unchecked_umul ( & mut self , a : RValue < ' gcc > , b : RValue < ' gcc > ) -> RValue < ' gcc > {
857
- set_rvalue_location ( self , self . gcc_mul ( a, b) )
858
- }
859
-
860
836
fn fadd_fast ( & mut self , lhs : RValue < ' gcc > , rhs : RValue < ' gcc > ) -> RValue < ' gcc > {
861
837
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
862
838
set_rvalue_location ( self , lhs + rhs)
0 commit comments