about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-03 22:21:53 +0000
committerbors <bors@rust-lang.org>2024-03-03 22:21:53 +0000
commit1abbf610fee5529ed5d89150741b87def4a7bd9c (patch)
treeda0e90436598b50a31e2963a60a53f7f4a33751e /compiler/rustc_codegen_gcc
parent27b669adc2cbe4ec8cfae686d495f6a30a33096b (diff)
parent70346fe2a455c754d93994922cbfaa9393c0002b (diff)
downloadrust-1abbf610fee5529ed5d89150741b87def4a7bd9c.tar.gz
rust-1abbf610fee5529ed5d89150741b87def4a7bd9c.zip
Auto merge of #121665 - erikdesjardins:ptradd, r=nikic
Always generate GEP i8 / ptradd for struct offsets

This implements #98615, and goes a bit further to remove `struct_gep` entirely.

Upstream LLVM is in the beginning stages of [migrating to `ptradd`](https://discourse.llvm.org/t/rfc-replacing-getelementptr-with-ptradd/68699). LLVM 19 will [canonicalize](https://github.com/llvm/llvm-project/pull/68882) all constant-offset GEPs to i8, which has roughly the same effect as this change.

Fixes #121719.

Split out from #121577.

r? `@nikic`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions