diff options
| author | Josh Stone <jistone@redhat.com> | 2022-08-12 10:22:38 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-08-14 13:46:51 -0700 |
| commit | 2970ad8aeeaa94ad5af5fc49150c14bcf86bf7c9 (patch) | |
| tree | 349c74212f2a70d742460cd684e3bc2f09da80e0 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 801821d1560f84e4716fcbd9244ec959320a13d5 (diff) | |
| download | rust-2970ad8aeeaa94ad5af5fc49150c14bcf86bf7c9.tar.gz rust-2970ad8aeeaa94ad5af5fc49150c14bcf86bf7c9.zip | |
Update the minimum external LLVM to 13
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 96d238eda59..f5d676c44e3 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -92,16 +92,6 @@ unsafe fn configure_llvm(sess: &Session) { add("-generate-arange-section", false); } - // Disable the machine outliner by default in LLVM versions 11 and LLVM - // version 12, where it leads to miscompilation. - // - // Ref: - // - https://github.com/rust-lang/rust/issues/85351 - // - https://reviews.llvm.org/D103167 - if llvm_util::get_version() < (13, 0, 0) { - add("-enable-machine-outliner=never", false); - } - match sess.opts.unstable_opts.merge_functions.unwrap_or(sess.target.merge_functions) { MergeFunctions::Disabled | MergeFunctions::Trampolines => {} MergeFunctions::Aliases => { |
