[PATCH] D138708: [SROA] Assert the AllocSize of i8 to be 1
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 25 08:41:50 PST 2022
lebedev.ri added a comment.
Ok, that is weird. I'm guessing the test case should return `2`? https://alive2.llvm.org/ce/z/BMccF9
I think this is hinting that a pretty fundamental assumption about i8's in LLVM does not hold,
and there are likely many more problems like this.
Does it work if you assert that the offset is a multiple of `getTypeAllocSize` and divide it by that?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138708/new/
https://reviews.llvm.org/D138708
More information about the llvm-commits
mailing list