[all-commits] [llvm/llvm-project] d7cf7e: [SROA] Handle over-large loads during presplitting
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Mar 16 07:43:54 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d7cf7ec05d3570998d04b9c257362838026ae75b
https://github.com/llvm/llvm-project/commit/d7cf7ec05d3570998d04b9c257362838026ae75b
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-03-16 (Wed, 16 Mar 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/SROA.cpp
M llvm/test/Transforms/SROA/slice-width.ll
Log Message:
-----------
[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.
More information about the All-commits
mailing list