Skip to content

Commit 683a225

Browse files
committed
Add the optimization in a few other methods
1 parent 169f653 commit 683a225

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/builder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -902,22 +902,22 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
902902

903903
fn fadd_algebraic(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {
904904
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
905-
lhs + rhs
905+
self.assign_to_var(lhs + rhs)
906906
}
907907

908908
fn fsub_algebraic(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {
909909
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
910-
lhs - rhs
910+
self.assign_to_var(lhs - rhs)
911911
}
912912

913913
fn fmul_algebraic(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {
914914
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
915-
lhs * rhs
915+
self.assign_to_var(lhs * rhs)
916916
}
917917

918918
fn fdiv_algebraic(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {
919919
// NOTE: it seems like we cannot enable fast-mode for a single operation in GCC.
920-
lhs / rhs
920+
self.assign_to_var(lhs / rhs)
921921
}
922922

923923
fn frem_algebraic(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {

0 commit comments

Comments
 (0)