Skip to content

Commit 0bef456

Browse files
committed
Revert "Add the optimization in a few other methods"
This reverts commit da65b93.
1 parent da65b93 commit 0bef456

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/builder.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -855,21 +855,18 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
855855
}
856856

857857
fn neg(&mut self, a: RValue<'gcc>) -> RValue<'gcc> {
858-
let result = set_rvalue_location(self, self.gcc_neg(a));
859-
self.assign_to_var(result)
858+
set_rvalue_location(self, self.gcc_neg(a))
860859
}
861860

862861
fn fneg(&mut self, a: RValue<'gcc>) -> RValue<'gcc> {
863-
let result = set_rvalue_location(
862+
set_rvalue_location(
864863
self,
865864
self.cx.context.new_unary_op(self.location, UnaryOp::Minus, a.get_type(), a),
866-
);
867-
self.assign_to_var(result)
865+
)
868866
}
869867

870868
fn not(&mut self, a: RValue<'gcc>) -> RValue<'gcc> {
871-
let result = set_rvalue_location(self, self.gcc_not(a));
872-
self.assign_to_var(result)
869+
set_rvalue_location(self, self.gcc_not(a))
873870
}
874871

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

0 commit comments

Comments
 (0)