Skip to content

Commit e8fece1

Browse files
committed
Auto merge of rust-lang#121068 - saethlin:no-inbounds, r=<try>
[perf experiment] Only emit gep not gepi r? `@ghost` Re-creating rust-lang#120483, trying to measure the perf impact of `gep` vs `gepi`. That previous PR was with LLVM 17 and it found a runtime perf _improvement_, so in part this PR is assessing if that was fixed in LLVM 18. Codegen tests will fail.
2 parents 37b6533 + dcfa484 commit e8fece1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
727727
indices: &[&'ll Value],
728728
) -> &'ll Value {
729729
unsafe {
730-
llvm::LLVMBuildInBoundsGEP2(
730+
llvm::LLVMBuildGEP2(
731731
self.llbuilder,
732732
ty,
733733
ptr,

0 commit comments

Comments
 (0)