[llvm] LTO: Stop overwriting the merged module's DataLayout (PR #223987)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 06:21:44 PDT 2026
aengelke wrote:
> I'd hope the module has no datalayout to start
Changing from the default data layout to something else seems more acceptable.
I have this very vague idea of eventually moving the data layout to the context and making that immutable; this would avoid the constant-folding dichotomy between constant folding outside and inside modules, types would always immediately know their size/alignment, etc. Not sure how realistic this is, however (e.g. IR/MIR/bc parsing would need a few hacks, but that is probably manageable).
https://github.com/llvm/llvm-project/pull/223987
More information about the llvm-commits
mailing list