Skip to content

Commit

Permalink
Delete dead (commented out) code. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewycky committed Oct 1, 2019
1 parent 58cd7b9 commit 5445cde
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/singlepass-backend/src/codegen_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1563,21 +1563,17 @@ impl X64FunctionCode {
};
if check_alignment && align != 1 {
let tmp_aligncheck = m.acquire_temp_gpr().unwrap();
//let tmp_mask = m.acquire_temp_gpr().unwrap();
a.emit_mov(
Size::S32,
Location::GPR(tmp_addr),
Location::GPR(tmp_aligncheck),
);
//a.emit_mov(Size::S64, Location::Imm64(align - 1), Location::GPR(tmp_mask));
//a.emit_and(Size::S64, Location::GPR(tmp_mask), Location::GPR(tmp_aligncheck));
a.emit_and(
Size::S64,
Location::Imm32(align - 1),
Location::GPR(tmp_aligncheck),
);
a.emit_conditional_trap(Condition::NotEqual);
//m.release_temp_gpr(tmp_mask);
m.release_temp_gpr(tmp_aligncheck);
}

Expand Down

0 comments on commit 5445cde

Please sign in to comment.