diff options
author | Nikita Popov <npopov@redhat.com> | 2022-03-16 15:39:26 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-03-16 15:41:11 +0100 |
commit | d7cf7ec05d3570998d04b9c257362838026ae75b (patch) | |
tree | 4e04b5094738d5cd24befa365ce55aab50ee343f /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d58ef6df0d4a248404810bd1b048a0a8a63cd62b (diff) | |
download | llvm-d7cf7ec05d3570998d04b9c257362838026ae75b.zip llvm-d7cf7ec05d3570998d04b9c257362838026ae75b.tar.gz llvm-d7cf7ec05d3570998d04b9c257362838026ae75b.tar.bz2 |
[SROA] Handle over-large loads during presplitting
When a load extends past the extent of the alloca, SROA will
restrict the slice size to extend to the end of the alloca only.
However, presplitting was asserting that the load size and the
slice size match exactly, which does not hold in this case.
Relax the assertion to only require that the load size is greater
or equal than the slice size.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions