Skip to content
Snippets Groups Projects

Misc. improvements

Merged rarbore2 requested to merge misc into main
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -180,7 +180,9 @@ pub fn sroa(
@@ -180,7 +180,9 @@ pub fn sroa(
.collect();
.collect();
println!("{:?}", to_sroa);
println!("{:?}", to_sroa);
// Perform SROA.
// Perform SROA. TODO: repair def-use when there are multiple product
 
// constants to SROA away.
 
assert!(to_sroa.len() < 2);
for (constant_node_id, constant_id) in to_sroa {
for (constant_node_id, constant_id) in to_sroa {
// Get the field constants to replace the product constant with.
// Get the field constants to replace the product constant with.
let product_constant = constants[constant_id.idx()].clone();
let product_constant = constants[constant_id.idx()].clone();
Loading