WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 98f275bf authored by qinsoon's avatar qinsoon
Browse files

remove some warnings

parent 03fc6f24
......@@ -616,7 +616,7 @@ impl <'a> InstructionSelection {
{
// mov op1 -> rax
let rax = x86_64::RAX.clone();
self.emit_move_value_to_value(&rax, &op1.clone_value(), f_content, f_context, vm);
self.emit_move_value_to_value(&rax, &op1.clone_value());
// xorq rdx, rdx -> rdx
let rdx = x86_64::RDX.clone();
......@@ -626,7 +626,7 @@ impl <'a> InstructionSelection {
if self.match_ireg(op2) {
let reg_op2 = self.emit_ireg(op2, f_content, f_context, vm);
self.backend.emit_div_r64(&op2.clone_value());
self.backend.emit_div_r64(&reg_op2.clone_value());
} else if self.match_mem(op2) {
let mem_op2 = self.emit_mem(op2);
......@@ -653,7 +653,7 @@ impl <'a> InstructionSelection {
{
// mov op1 -> rax
let rax = x86_64::RAX.clone();
self.emit_move_value_to_value(&rax, &op1.clone_value(), f_content, f_context, vm);
self.emit_move_value_to_value(&rax, &op1.clone_value());
// cqo
self.backend.emit_cqo();
......@@ -662,7 +662,7 @@ impl <'a> InstructionSelection {
if self.match_ireg(op2) {
let reg_op2 = self.emit_ireg(op2, f_content, f_context, vm);
self.backend.emit_idiv_r64(&op2.clone_value());
self.backend.emit_idiv_r64(&reg_op2.clone_value());
} else if self.match_mem(op2) {
let mem_op2 = self.emit_mem(op2);
......@@ -1449,8 +1449,7 @@ impl <'a> InstructionSelection {
}
}
fn emit_move_value_to_value(&mut self, dest: &P<Value>, src: &P<Value>, f_content: &FunctionContent, f_context: &mut FunctionContext, vm: &VM) {
let ref dest_ty = dest.ty;
fn emit_move_value_to_value(&mut self, dest: &P<Value>, src: &P<Value>) {
let ref src_ty = src.ty;
if types::is_scalar(src_ty) && !types::is_fp(src_ty) {
......
......@@ -625,6 +625,7 @@ impl <'a> GraphColoring<'a> {
}
}
#[allow(unused_variables)]
fn rewrite_program(&mut self) {
let spills = self.spills();
......@@ -641,6 +642,7 @@ impl <'a> GraphColoring<'a> {
spilled_mem.insert(*reg_id, mem);
}
// though we are not using this right now
let new_temps = backend::spill_rewrite(&spilled_mem, self.func, self.cf, self.vm);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment