Skip to content

Commit 3545bfb

Browse files
committed
Revert "Add the optimization in a few other methods"
This reverts commit f2bfe54.
1 parent f2bfe54 commit 3545bfb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/builder.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -843,16 +843,15 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
843843
}
844844

845845
fn and(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
846-
self.assign_to_var(self.gcc_and(a, b))
846+
self.gcc_and(a, b)
847847
}
848848

849849
fn or(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
850-
self.assign_to_var(self.cx.gcc_or(a, b, self.location))
850+
self.cx.gcc_or(a, b, self.location)
851851
}
852852

853853
fn xor(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
854-
let result = set_rvalue_location(self, self.gcc_xor(a, b));
855-
self.assign_to_var(result)
854+
set_rvalue_location(self, self.gcc_xor(a, b))
856855
}
857856

858857
fn neg(&mut self, a: RValue<'gcc>) -> RValue<'gcc> {

0 commit comments

Comments
 (0)