Commit Graph

5 Commits

Author SHA1 Message Date
JF Bastien dc1c8b8da0 CDDecl More automatic variable tail padding test
Test tail padded automatic variable at different width, because they encounter different codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339273 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-08 17:05:17 +00:00
JF Bastien 5c696accea [NFC] Improve auto-var-init alignment check
We're not actually testing for alignment, we just want to know that whatever incoming alignment got propagated. Do that by capturing the alignment and checking that it's actually what's passed later, instead of hard-coding an alignment value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339196 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-07 22:43:44 +00:00
JF Bastien c629b8b248 Auto var init test fix #2
It turns out that the AVX bots have different alignment for their vectors, and my test mistakenly assumed a particular vector alignent on the stack. Instead, capture the alignment and test for it in subsequent operations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339093 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-07 04:44:13 +00:00
JF Bastien dba59abb09 Remove broken command flag
I was using it for testing, r339089 shouldn't have contained it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339090 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-07 04:03:03 +00:00
JF Bastien 9360de8c31 [NFC] Test automatic variable initialization
Summary:
r337887 started using memset for automatic variable initialization where sensible. A follow-up discussion leads me to believe that we should better test automatic variable initialization, and that there are probably follow-up patches in clang and LLVM to improve codegen. It’ll be important to measure -O0 compile time, and figure out which transforms should be in the frontend versus the backend.

This patch is just a test of the current behavior, no questions asked. Follow-up patches will tune the code generation.

<rdar://problem/42981573>

Subscribers: dexonsmith, cfe-commits

Differential Revision: https://reviews.llvm.org/D50361

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339089 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-07 03:12:52 +00:00