diff options
| author | Josh Stone <jistone@redhat.com> | 2025-08-07 14:29:00 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-09-16 11:49:20 -0700 |
| commit | 580b4891aa23c0625539bf5ee55270f27af09072 (patch) | |
| tree | 71fe7429078d373a1e3acf7d947ba751df5297d6 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | eec6bd9d69832f57341c6de6a93fa7b9f47e2111 (diff) | |
| download | rust-580b4891aa23c0625539bf5ee55270f27af09072.tar.gz rust-580b4891aa23c0625539bf5ee55270f27af09072.zip | |
Update the minimum external LLVM to 20
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 7d0691366e6..0f17cc9063a 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -1091,16 +1091,11 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { ty: Ty<'tcx>, lhs: Self::Value, rhs: Self::Value, - ) -> Option<Self::Value> { - // FIXME: See comment on the definition of `three_way_compare`. - if crate::llvm_util::get_version() < (20, 0, 0) { - return None; - } - + ) -> Self::Value { let size = ty.primitive_size(self.tcx); let name = if ty.is_signed() { "llvm.scmp" } else { "llvm.ucmp" }; - Some(self.call_intrinsic(name, &[self.type_i8(), self.type_ix(size.bits())], &[lhs, rhs])) + self.call_intrinsic(name, &[self.type_i8(), self.type_ix(size.bits())], &[lhs, rhs]) } /* Miscellaneous instructions */ |
