summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Generalize the REM folding code to handle another case Nick LewyckyChris Lattner2006-03-021-13/+43
| | | | | | pointed out: realize the AND can provide factors and look through Casts. llvm-svn: 26469
* add a couple more casesChris Lattner2006-03-021-0/+17
| | | | llvm-svn: 26468
* Fix a compilation error with GCC 4.1. Thanks to Vladimir Merzliakov forChris Lattner2006-03-021-1/+1
| | | | | | pointing this out. llvm-svn: 26467
* Support for enumerations.Jim Laskey2006-03-013-2/+95
| | | | llvm-svn: 26466
* testcase that crashed the new CFEChris Lattner2006-03-011-0/+14
| | | | llvm-svn: 26465
* Don't print llvm constant in assmebly file. Assembler won't like comments thatEvan Cheng2006-03-011-1/+3
| | | | | | span multiple lines. llvm-svn: 26463
* Back out my last check-in. Wrong place to fix it.Evan Cheng2006-03-011-0/+3
| | | | llvm-svn: 26462
* AsmWriter should not print LLVM constant in comment. Assembler won't likeEvan Cheng2006-03-011-4/+0
| | | | | | multi-line comments. llvm-svn: 26461
* Fix CodeGen/Generic/2006-03-01-dagcombineinfloop.ll, an infinite loopChris Lattner2006-03-011-4/+9
| | | | | | in the dag combiner on 176.gcc on x86. llvm-svn: 26459
* new testcaseChris Lattner2006-03-011-0/+98
| | | | llvm-svn: 26458
* Remove extra comma from enum list.Jim Laskey2006-03-011-1/+1
| | | | llvm-svn: 26457
* Remove comma from enum list.Jim Laskey2006-03-011-1/+1
| | | | llvm-svn: 26456
* Switch back to using actual dwarf tags. Simplifies code without loss to otherJim Laskey2006-03-014-127/+129
| | | | | | debug forms. llvm-svn: 26455
* Fix a typo evan noticedChris Lattner2006-03-011-1/+1
| | | | llvm-svn: 26454
* Use context and not compile unit.Jim Laskey2006-03-012-13/+15
| | | | llvm-svn: 26453
* I guess I can handle large type sizes.Jim Laskey2006-03-011-2/+1
| | | | llvm-svn: 26452
* Basic array support.Jim Laskey2006-03-013-16/+311
| | | | llvm-svn: 26451
* Implement CodeGen/PowerPC/or-addressing-mode.ll, which is also PR668.Chris Lattner2006-03-011-18/+59
| | | | llvm-svn: 26450
* load (x|y) -> load (x+y) iff x and y have no common bits.Chris Lattner2006-03-011-0/+23
| | | | llvm-svn: 26449
* add a noteChris Lattner2006-03-011-0/+18
| | | | llvm-svn: 26448
* Compile this:Chris Lattner2006-03-015-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | void foo(float a, int *b) { *b = a; } to this: _foo: fctiwz f0, f1 stfiwx f0, 0, r4 blr instead of this: _foo: fctiwz f0, f1 stfd f0, -8(r1) lwz r2, -4(r1) stw r2, 0(r4) blr This implements CodeGen/PowerPC/stfiwx.ll, and also incidentally does the right thing for GCC bugzilla 26505. llvm-svn: 26447
* new testcase. These functions shouldn't touch the stack if stfiwx useChris Lattner2006-03-011-0/+21
| | | | | | is enabled. llvm-svn: 26446
* Use a target-specific dag-combine to implement CodeGen/PowerPC/fp-int-fp.ll.Chris Lattner2006-03-013-25/+42
| | | | llvm-svn: 26445
* new testcase. There should be no accesses to the stack for these functions.Chris Lattner2006-03-011-0/+27
| | | | llvm-svn: 26444
* Add support for target-specific dag combinesChris Lattner2006-03-011-13/+58
| | | | llvm-svn: 26443
* Add interfaces for targets to provide target-specific dag combiner ↵Chris Lattner2006-03-012-9/+67
| | | | | | optimizations. llvm-svn: 26442
* Add a new AddToWorkList method, start using itChris Lattner2006-03-011-57/+63
| | | | llvm-svn: 26441
* Pull shifts by a constant through multiplies (a form of reassociation),Chris Lattner2006-03-011-0/+27
| | | | | | implementing Regression/CodeGen/X86/mul-shift-reassoc.ll llvm-svn: 26440
* new testcaseChris Lattner2006-03-011-0/+12
| | | | llvm-svn: 26439
* Vector op lowering.Evan Cheng2006-03-012-6/+35
| | | | llvm-svn: 26438
* New vector type v2f32.Evan Cheng2006-03-011-0/+2
| | | | llvm-svn: 26437
* Vector ops lowering.Evan Cheng2006-03-013-50/+76
| | | | llvm-svn: 26436
* New type v2f32.Evan Cheng2006-03-011-2/+3
| | | | llvm-svn: 26435
* Missing a cast previously.Evan Cheng2006-03-011-1/+1
| | | | llvm-svn: 26434
* - Added v2f32, not used by any target currently. Only for testing purpose.Evan Cheng2006-03-011-12/+27
| | | | | | - Minor bug fix. llvm-svn: 26433
* - Added VConstant as an abstract version of ConstantVec.Evan Cheng2006-03-012-22/+34
| | | | | | | - All abstrct vector nodes must have # of elements and element type as their first two operands. llvm-svn: 26432
* Add a test case for left shift by 1. We should not be using lea for this.Evan Cheng2006-02-281-0/+9
| | | | llvm-svn: 26431
* Another entry.Evan Cheng2006-02-281-0/+16
| | | | llvm-svn: 26430
* Don't match x << 1 to LEAL. It's better to emit x + x.Evan Cheng2006-02-281-1/+4
| | | | llvm-svn: 26429
* Add const, volatile, restrict support.Jim Laskey2006-02-283-8/+82
| | | | | | Add array of debug descriptor support. llvm-svn: 26428
* Fix a regression in a patch from a couple of days ago. This fixesChris Lattner2006-02-281-1/+3
| | | | | | Transforms/InstCombine/2006-02-28-Crash.ll llvm-svn: 26427
* new testcaseChris Lattner2006-02-281-0/+6
| | | | llvm-svn: 26426
* 8 spaces -> tab. Reported by Wink SavilleChris Lattner2006-02-281-1/+1
| | | | llvm-svn: 26425
* evan's recent x86 isel improvements have fixed this, though not in the wayChris Lattner2006-02-281-3/+0
| | | | | | originally envisioned :) llvm-svn: 26422
* Add a subtarget feature for the stfiwx instruction. I know the G5 has it,Chris Lattner2006-02-282-2/+6
| | | | | | | but I don't know what other PPC impls do. If someone could update the proc table, I would appreciate it :) llvm-svn: 26421
* new testcasesChris Lattner2006-02-281-1/+30
| | | | llvm-svn: 26420
* Compile:Chris Lattner2006-02-281-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | unsigned foo4(unsigned short *P) { return *P & 255; } unsigned foo5(short *P) { return *P & 255; } to: _foo4: lbz r3,1(r3) blr _foo5: lbz r3,1(r3) blr not: _foo4: lhz r2, 0(r3) rlwinm r3, r2, 0, 24, 31 blr _foo5: lhz r2, 0(r3) rlwinm r3, r2, 0, 24, 31 blr llvm-svn: 26419
* remove implemented itemChris Lattner2006-02-281-17/+0
| | | | llvm-svn: 26418
* Fold "and (LOAD P), 255" -> zextload. This allows us to compile:Chris Lattner2006-02-281-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unsigned foo3(unsigned *P) { return *P & 255; } as: _foo3: lbz r3, 3(r3) blr instead of: _foo3: lwz r2, 0(r3) rlwinm r3, r2, 0, 24, 31 blr and: unsigned short foo2(float a) { return a; } as: _foo2: fctiwz f0, f1 stfd f0, -8(r1) lhz r3, -2(r1) blr instead of: _foo2: fctiwz f0, f1 stfd f0, -8(r1) lwz r2, -4(r1) rlwinm r3, r2, 0, 16, 31 blr llvm-svn: 26417
* fold (sra (sra x, c1), c2) -> (sra x, c1+c2)Chris Lattner2006-02-281-3/+11
| | | | llvm-svn: 26416
OpenPOWER on IntegriCloud