diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-01-21 23:16:05 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-01-21 23:16:05 +0000 |
| commit | c04f2c99aba75a5e05177c35360d16bee7da09b2 (patch) | |
| tree | acc68e54f5c64688a42ccadc1a2b4f542dfafabc /lib/Transforms/Utils/LoopSimplify.cpp | |
| parent | 3d218156f8eb62693c2ab31029859096a3b2e4a2 (diff) | |
| download | llvm-c04f2c99aba75a5e05177c35360d16bee7da09b2.tar.gz llvm-c04f2c99aba75a5e05177c35360d16bee7da09b2.tar.bz2 llvm-c04f2c99aba75a5e05177c35360d16bee7da09b2.tar.xz | |
[SROA] Fix a bug which could cause the common type finding to return
inconsistent results for different orderings of alloca slices. The
fundamental issue is that it is just always a mistake to return early
from this function. There is no effective early exit to leverage. This
patch stops trynig to do so and simplifies the code a bit as
a consequence.
Original diagnosis and patch by James Molloy with some name tweaks by me
in part reflecting feedback from Duncan Smith on the mailing list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions
