diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-12-12 10:38:46 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-12-12 10:38:46 +0100 |
| commit | 3f47f938ba5303be9b6fe8c13aee6dce4aaa4b0b (patch) | |
| tree | 7bffbd1d3f2de9f551a90728d02161afe36c0876 | |
| parent | f8e22bfb1bff658466cf97e99026b91c2213df5d (diff) | |
| download | rust-3f47f938ba5303be9b6fe8c13aee6dce4aaa4b0b.tar.gz rust-3f47f938ba5303be9b6fe8c13aee6dce4aaa4b0b.zip | |
Enable Cranelift optimizations when optimizing
LICM in Cranelift has been fixed recently
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs index ba9ee0d450e..7b751102f8b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -283,8 +283,6 @@ fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'stat flags_builder.set("enable_simd", "true").unwrap(); - // FIXME(CraneStation/cranelift#732) fix LICM in presence of jump tables - /* use rustc_session::config::OptLevel; match sess.opts.optimize { OptLevel::No => { @@ -297,7 +295,7 @@ fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'stat OptLevel::Size | OptLevel::SizeMin => { sess.warn("Optimizing for size is not supported. Just ignoring the request"); } - }*/ + } let flags = settings::Flags::new(flags_builder); |
