diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2017-06-24 01:35:19 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2017-06-24 01:35:19 +0000 |
| commit | df19ad456e7e21065a52bd9f3c0de6c7deb5195e (patch) | |
| tree | 79b7dfabfe0b72d16a3c6282e3dafc99ad805557 /llvm/test/Feature/calltest.ll | |
| parent | 9c2a036276b943c42132fda7f989ca65cde10cd1 (diff) | |
| download | bcm5719-llvm-df19ad456e7e21065a52bd9f3c0de6c7deb5195e.tar.gz bcm5719-llvm-df19ad456e7e21065a52bd9f3c0de6c7deb5195e.zip | |
[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
Diffstat (limited to 'llvm/test/Feature/calltest.ll')
0 files changed, 0 insertions, 0 deletions

