Fix weird indentation.

This commit is contained in:
Jakob Stoklund Olesen
2017-03-22 13:17:25 -07:00
parent 19db81f6a8
commit 098a48e332

View File

@@ -178,24 +178,24 @@ impl DataFlowGraph {
/// copy/spill/fill instructions. /// copy/spill/fill instructions.
pub fn resolve_copies(&self, value: Value) -> Value { pub fn resolve_copies(&self, value: Value) -> Value {
use ir::entities::ExpandedValue::Direct; use ir::entities::ExpandedValue::Direct;
let mut v = self.resolve_aliases(value); let mut v = value;
for _ in 0..self.insts.len() { for _ in 0..self.insts.len() {
v = self.resolve_aliases(match v.expand() { v = self.resolve_aliases(v);
Direct(inst) => { v = match v.expand() {
match self[inst] { Direct(inst) => {
InstructionData::Unary { opcode, arg, .. } => { match self[inst] {
match opcode { InstructionData::Unary { opcode, arg, .. } => {
Opcode::Copy | Opcode::Spill | match opcode {
Opcode::Fill => arg, Opcode::Copy | Opcode::Spill | Opcode::Fill => arg,
_ => return v, _ => return v,
} }
} }
_ => return v, _ => return v,
} }
} }
_ => return v, _ => return v,
}); };
} }
panic!("Copy loop detected for {}", value); panic!("Copy loop detected for {}", value);
} }