Skip to content

Commit 3f47f93

Browse files
committed
Enable Cranelift optimizations when optimizing
LICM in Cranelift has been fixed recently
1 parent f8e22bf commit 3f47f93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'stat
283283

284284
flags_builder.set("enable_simd", "true").unwrap();
285285

286-
// FIXME(CraneStation/cranelift#732) fix LICM in presence of jump tables
287-
/*
288286
use rustc_session::config::OptLevel;
289287
match sess.opts.optimize {
290288
OptLevel::No => {
@@ -297,7 +295,7 @@ fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'stat
297295
OptLevel::Size | OptLevel::SizeMin => {
298296
sess.warn("Optimizing for size is not supported. Just ignoring the request");
299297
}
300-
}*/
298+
}
301299

302300
let flags = settings::Flags::new(flags_builder);
303301

0 commit comments

Comments
 (0)