Closed regehr closed 1 month ago
Ah, that is related with a fix for https://github.com/AliveToolkit/alive2/issues/1028 Allocation sites are rounded up to the alignment.
It's unclear to me if we really want that at the middle-end, or just for later codegen passes. There's a bit of a discussion going on LLVM's side. So right now, the code is not UB as expected. Though I'm happy to look at concrete examples to try to bias the semantics either way.
alive-tv is giving me a value mismatch on this code but shouldn't it be undefined in all executions due to storing an i64 into that i8 that we alloca'ed?