diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-27 21:35:58 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-27 21:35:58 +0000 |
commit | cfa07e3519cff1c69cd39d02c80263fd6469c3db (patch) | |
tree | 4e75951cc9f4e9d2a4dd0fe9f3587eb5e8c3eda7 /test/CodeGen | |
parent | 29760b452876548f59804e8c02c3276bc7281d5d (diff) |
CodeGen: When emitting stores for an initializer, only emit a GEP if we really need the store.
This avoids emitting many dead GEPs for large zero-initialized arrays.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c index 426233d8df..259d34d595 100644 --- a/test/CodeGen/init.c +++ b/test/CodeGen/init.c @@ -69,6 +69,8 @@ char test8(int X) { // CHECK: store i8 97 // CHECK: store i8 98 // CHECK: store i8 99 +// CHECK-NOT: getelementptr +// CHECK: load } void bar(void*); |