commit | 940f6f45878c399dba4b64a218cf5c477f97de04 | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Sat Jun 24 01:35:19 2017 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Oct 12 11:36:27 2020 -0700 |
tree | 6f5f180b552053db2375131678afd4e844e4357b | |
parent | c89e539efaf5ed866daf33fa4899cc897b3dc39a [diff] |
[InstCombine] Don't replace allocas with smaller globals Summary: InstCombine replaces large allocas with small globals consts causing buffer overflows on valid code, see PR33372. This fix permits this optimization only if the global is dereference for alloca size. Fixes PR33372 Reviewers: eugenis, majnemer, chandlerc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34311 llvm-svn: 306194 GitOrigin-RevId: df19ad456e7e21065a52bd9f3c0de6c7deb5195e