diff options
| author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2023-11-15 19:58:52 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2023-11-21 22:40:16 +0100 |
| commit | 7de6d04bc8033644c09fd1273b6fb3164d04fab3 (patch) | |
| tree | 60e41716747a9033ac93633664c15e384d2ff08c /compiler/rustc_codegen_llvm/src | |
| parent | 2f8d81f9dbac6b8df982199f69da04a4c8357227 (diff) | |
| download | rust-7de6d04bc8033644c09fd1273b6fb3164d04fab3.tar.gz rust-7de6d04bc8033644c09fd1273b6fb3164d04fab3.zip | |
Update the minimum external LLVM to 16.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 242c6aed906..bb7730f08e9 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -134,18 +134,6 @@ pub unsafe fn create_module<'ll>( let mut target_data_layout = sess.target.data_layout.to_string(); let llvm_version = llvm_util::get_version(); - if llvm_version < (16, 0, 0) { - if sess.target.arch == "s390x" { - // LLVM 16 data layout changed to always set 64-bit vector alignment, - // which is conditional in earlier LLVM versions. - // https://reviews.llvm.org/D131158 for the discussion. - target_data_layout = target_data_layout.replace("-v128:64", ""); - } else if sess.target.arch == "riscv64" { - // LLVM 16 introduced this change so as to produce more efficient code. - // See https://reviews.llvm.org/D116735 for the discussion. - target_data_layout = target_data_layout.replace("-n32:64-", "-n64-"); - } - } if llvm_version < (17, 0, 0) { if sess.target.arch.starts_with("powerpc") { // LLVM 17 specifies function pointer alignment for ppc: |
