Skip to content

Commit 926c405

Browse files
committed
Auto merge of #121068 - saethlin:no-inbounds, r=<try>
[perf experiment] Only emit gep not gepi r? `@ghost` Re-creating #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 fe03fb9 + 1743c5b commit 926c405

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
@@ -777,7 +777,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
777777
indices: &[&'ll Value],
778778
) -> &'ll Value {
779779
unsafe {
780-
llvm::LLVMBuildInBoundsGEP2(
780+
llvm::LLVMBuildGEP2(
781781
self.llbuilder,
782782
ty,
783783
ptr,

0 commit comments

Comments
 (0)