summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/newcasts.ll
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-06-24 01:35:19 +0000
committerVitaly Buka <vitalybuka@google.com>2017-06-24 01:35:19 +0000
commitdf19ad456e7e21065a52bd9f3c0de6c7deb5195e (patch)
tree79b7dfabfe0b72d16a3c6282e3dafc99ad805557 /llvm/test/Feature/newcasts.ll
parent9c2a036276b943c42132fda7f989ca65cde10cd1 (diff)
downloadbcm5719-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/newcasts.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud