summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/address-space-field3.c
Commit message (Collapse)AuthorAgeFilesLines
* remove some tests that aren't adding any value: the check lines don'tChris Lattner2010-09-021-42/+0
| | | | | | | make it clear what they're testing so there is no way to know it's right or to update it. llvm-svn: 112897
* Implement rdar://7530813 - collapse multiple GEP instructions in IRgenChris Lattner2010-06-261-4/+0
| | | | | | | | | | | | | | | | | | | | This avoids generating two gep's for common array operations. Before we would generate something like: %tmp = load i32* %X.addr ; <i32> [#uses=1] %arraydecay = getelementptr inbounds [100 x i32]* %A, i32 0, i32 0 ; <i32*> [#uses=1] %arrayidx = getelementptr inbounds i32* %arraydecay, i32 %tmp ; <i32*> [#uses=1] %tmp1 = load i32* %arrayidx ; <i32> [#uses=1] Now we generate: %tmp = load i32* %X.addr ; <i32> [#uses=1] %arrayidx = getelementptr inbounds [100 x i32]* %A, i32 0, i32 %tmp ; <i32*> [#uses=1] %tmp1 = load i32* %arrayidx ; <i32> [#uses=1] Less IR is better at -O0. llvm-svn: 106966
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Convert some tests to FileCheck to be more portable. Patch by John Thompson.Mike Stump2009-10-081-3/+29
| | | | llvm-svn: 83578
* Preserve address space information through member accesses, e.g., Mon P Wang2009-07-221-0/+20
__attribute__((address_space(1))) struct {int arr[ 3 ]; } *p1; ... = p1->arr[2]; // load from address space 1 llvm-svn: 76717
OpenPOWER on IntegriCloud