diff options
author | James Molloy <james.molloy@arm.com> | 2016-04-25 10:48:29 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2016-04-25 10:48:29 +0000 |
commit | eb040cc55f670fbb9087a5d5bf2bd1b3aa1dd403 (patch) | |
tree | 33515323433f51772ccaaba0c11b75addfeb9f5c /clang/test/OpenMP/taskloop_codegen.cpp | |
parent | 3c924653c1e9cf0c6d86af11e4c88d3349da3936 (diff) | |
download | bcm5719-llvm-eb040cc55f670fbb9087a5d5bf2bd1b3aa1dd403.tar.gz bcm5719-llvm-eb040cc55f670fbb9087a5d5bf2bd1b3aa1dd403.zip |
[GlobalOpt] Allow constant globals to be SRA'd
The current logic assumes that any constant global will never be SRA'd. I presume this is because normally constant globals can be pushed into their uses and deleted. However, that sometimes can't happen (which is where you really want SRA, so the elements that can be eliminated, are!).
There seems to be no reason why we can't SRA constants too, so let's do it.
llvm-svn: 267393
Diffstat (limited to 'clang/test/OpenMP/taskloop_codegen.cpp')
0 files changed, 0 insertions, 0 deletions