Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalar Replacement of Aggregates #5114

Merged
merged 14 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions sway-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ use sway_ast::AttributeDecl;
use sway_error::handler::{ErrorEmitted, Handler};
use sway_ir::{
create_o1_pass_group, register_known_passes, Context, Kind, Module, PassManager,
ARGDEMOTION_NAME, CONSTDEMOTION_NAME, DCE_NAME, MEMCPYOPT_NAME, MISCDEMOTION_NAME,
MODULEPRINTER_NAME, RETDEMOTION_NAME, SIMPLIFYCFG_NAME,
ARGDEMOTION_NAME, CONSTDEMOTION_NAME, DCE_NAME, MEM2REG_NAME, MEMCPYOPT_NAME,
MISCDEMOTION_NAME, MODULEPRINTER_NAME, RETDEMOTION_NAME, SIMPLIFYCFG_NAME, SROA_NAME,
};
use sway_types::constants::DOC_COMMENT_ATTRIBUTE_NAME;
use sway_types::SourceEngine;
Expand Down Expand Up @@ -765,6 +765,9 @@ pub(crate) fn compile_ast_to_ir_to_asm(
// Run a DCE and simplify-cfg to clean up any obsolete instructions.
pass_group.append_pass(DCE_NAME);
pass_group.append_pass(SIMPLIFYCFG_NAME);
pass_group.append_pass(SROA_NAME);
pass_group.append_pass(MEM2REG_NAME);
pass_group.append_pass(DCE_NAME);
}

if build_config.print_ir {
Expand Down
4 changes: 2 additions & 2 deletions sway-ir/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pub mod call_graph;
pub use call_graph::*;
pub mod dominator;
pub use dominator::*;
pub mod escaped_symbols;
pub use escaped_symbols::*;
pub mod memory_utils;
pub use memory_utils::*;
134 changes: 0 additions & 134 deletions sway-ir/src/analysis/escaped_symbols.rs

This file was deleted.

Loading