diff --git a/hercules_opt/src/sroa.rs b/hercules_opt/src/sroa.rs index 6d6503b09dddefec63cf271f5a2caa1a1169d59c..8865f863934233cb3675c57319c5e2746e339aaf 100644 --- a/hercules_opt/src/sroa.rs +++ b/hercules_opt/src/sroa.rs @@ -60,9 +60,6 @@ pub fn sroa( .map(|(i, t)| (NodeID::new(i), *t)) .collect(); - // FIXME: We need to be able to eliminate 0-sized products regardless of what's in them - // This is actually really hard because we should also be able to eliminate singleton products - // regardless of what's in them let can_sroa_type = |editor: &FunctionEditor, typ: TypeID| { editor.get_type(typ).is_product() && (allow_sroa_arrays || !type_contains_array(editor, typ))