Fix weird indentation.
This commit is contained in:
@@ -178,16 +178,16 @@ 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);
|
||||||
|
v = match v.expand() {
|
||||||
Direct(inst) => {
|
Direct(inst) => {
|
||||||
match self[inst] {
|
match self[inst] {
|
||||||
InstructionData::Unary { opcode, arg, .. } => {
|
InstructionData::Unary { opcode, arg, .. } => {
|
||||||
match opcode {
|
match opcode {
|
||||||
Opcode::Copy | Opcode::Spill |
|
Opcode::Copy | Opcode::Spill | Opcode::Fill => arg,
|
||||||
Opcode::Fill => arg,
|
|
||||||
_ => return v,
|
_ => return v,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ impl DataFlowGraph {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => return v,
|
_ => return v,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
panic!("Copy loop detected for {}", value);
|
panic!("Copy loop detected for {}", value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user