Skip to content
Snippets Groups Projects
Commit 97c4bbcf authored by Aaron Councilman's avatar Aaron Councilman
Browse files

Formatting

parent 17865bcb
No related branches found
No related tags found
1 merge request!57Intraprocedural SROA
Pipeline #200323 passed
...@@ -213,7 +213,7 @@ pub fn sroa(editor: &mut FunctionEditor, reverse_postorder: &Vec<NodeID>, types: ...@@ -213,7 +213,7 @@ pub fn sroa(editor: &mut FunctionEditor, reverse_postorder: &Vec<NodeID>, types:
// enough information to process a particular node, we add it back to the worklist // enough information to process a particular node, we add it back to the worklist
let mut next_id: usize = editor.func().nodes.len(); let mut next_id: usize = editor.func().nodes.len();
let mut to_insert = BTreeMap::new(); let mut to_insert = BTreeMap::new();
let mut to_replace : Vec<(NodeID, NodeID)> = vec![]; let mut to_replace: Vec<(NodeID, NodeID)> = vec![];
while let Some(mut item) = worklist.pop_front() { while let Some(mut item) = worklist.pop_front() {
if let WorkItem::Unhandled(node) = item { if let WorkItem::Unhandled(node) = item {
...@@ -394,10 +394,9 @@ pub fn sroa(editor: &mut FunctionEditor, reverse_postorder: &Vec<NodeID>, types: ...@@ -394,10 +394,9 @@ pub fn sroa(editor: &mut FunctionEditor, reverse_postorder: &Vec<NodeID>, types:
node, node,
fields, fields,
} => { } => {
if let (Some(thn_fields), Some(els_fields)) = ( if let (Some(thn_fields), Some(els_fields)) =
field_map.get(&thn), (field_map.get(&thn), field_map.get(&els))
field_map.get(&els), {
) {
fields fields
.zip(thn_fields) .zip(thn_fields)
.zip(els_fields) .zip(els_fields)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment