summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove some dead variables.Chris Lattner2006-05-122-7/+2
| | | | | | Fix a nasty bug in the memcmp optimizer where we used the wrong variable! llvm-svn: 28269
* Remove dead stuffChris Lattner2006-05-121-4/+0
| | | | llvm-svn: 28268
* Fix build breakage :(Chris Lattner2006-05-121-1/+3
| | | | llvm-svn: 28267
* More coverity fixesChris Lattner2006-05-122-2/+3
| | | | llvm-svn: 28266
* Dead variableChris Lattner2006-05-121-2/+0
| | | | llvm-svn: 28265
* Remove dead var, fix bad override.Chris Lattner2006-05-122-2/+3
| | | | llvm-svn: 28264
* If the register allocator cannot find a register to spill, try the aliases. IfEvan Cheng2006-05-121-2/+19
| | | | | | | that still fails (because all the register spill weights are inf), just grab one. llvm-svn: 28262
* Remove dead codeEvan Cheng2006-05-121-4/+1
| | | | llvm-svn: 28261
* Fix accidentally committed patch.Chris Lattner2006-05-121-1/+1
| | | | llvm-svn: 28260
* Actually override the right method. :)Chris Lattner2006-05-121-1/+1
| | | | | | Bug identified by coverity. llvm-svn: 28259
* remove dead variable.Chris Lattner2006-05-121-1/+0
| | | | llvm-svn: 28258
* Fix iterator invalidation bug, identified by Coverity.Chris Lattner2006-05-122-1/+2
| | | | llvm-svn: 28257
* Fix a hypothetical memory leak, identified by Coverity. In practice, thisChris Lattner2006-05-121-1/+3
| | | | | | object is never deleted though. llvm-svn: 28256
* Remove dead varsChris Lattner2006-05-121-2/+0
| | | | llvm-svn: 28255
* remove dead varsChris Lattner2006-05-121-2/+1
| | | | llvm-svn: 28254
* Remove dead variableChris Lattner2006-05-121-1/+0
| | | | llvm-svn: 28253
* Comment out dead variablesChris Lattner2006-05-121-2/+2
| | | | llvm-svn: 28252
* When reading the symbol table, make sure to delete the ArchiveMemberReid Spencer2006-05-121-0/+2
| | | | | | created by reading the symbol table. llvm-svn: 28251
* Remove dead varChris Lattner2006-05-121-1/+0
| | | | llvm-svn: 28250
* Remove dead variableChris Lattner2006-05-121-2/+0
| | | | llvm-svn: 28249
* remove dead variable.Chris Lattner2006-05-121-1/+0
| | | | llvm-svn: 28248
* Remove dead variable.Chris Lattner2006-05-121-1/+0
| | | | llvm-svn: 28247
* Compile:Chris Lattner2006-05-121-1/+6
| | | | | | | | | | %tmp152 = setgt uint %tmp144, %tmp149 ; <bool> [#uses=1] %tmp159 = setlt uint %tmp144, %tmp149 ; <bool> [#uses=1] %bothcond2 = or bool %tmp152, %tmp159 ; <bool> [#uses=1] To setne, not setune, which causes an assertion fault. llvm-svn: 28244
* Fix PowerPC/2006-05-12-rlwimi-crash.llChris Lattner2006-05-121-3/+4
| | | | | | | Nate, please verify that if InsertMask is 0, rlwimi shouldn't be used. This fixes the crash and causes no PPC testsuite regressions. llvm-svn: 28243
* Add a method to generate a string representation from a TargetData.Owen Anderson2006-05-121-0/+21
| | | | | | This continues the work on PR 761. llvm-svn: 28239
* Refactor a bunch of includes so that TargetMachine.h doesn't have to includeOwen Anderson2006-05-1218-0/+18
| | | | | | | TargetData.h. This should make recompiles a bit faster with my current TargetData tinkering. llvm-svn: 28238
* Fix some tabbing issues.Owen Anderson2006-05-121-29/+29
| | | | llvm-svn: 28237
* Backing out fix for PR770. Need to re-apply it after live range splitting is ↵Evan Cheng2006-05-121-25/+13
| | | | | | possible llvm-svn: 28236
* Duh. That could take a long time.Evan Cheng2006-05-121-11/+15
| | | | llvm-svn: 28235
* Add a new constructor to TargetData that builds a TargetData from itsOwen Anderson2006-05-121-0/+65
| | | | | | | | string representation. This is part of PR 761. llvm-svn: 28234
* Two simplifications for token factor nodes: simplify tf(x,x) -> x.Chris Lattner2006-05-121-2/+6
| | | | | | simplify tf(x,y,y,z) -> tf(x,y,z). llvm-svn: 28233
* Add capability to scheduler to commute nodes for profit.Evan Cheng2006-05-122-31/+61
| | | | | | | If a two-address code whose first operand has uses below, it should be commuted when possible. llvm-svn: 28230
* Typo! How did we commute nodes before?!Evan Cheng2006-05-121-1/+1
| | | | llvm-svn: 28229
* For extra sanity checking, fill free'd memory with garbage so we know thatChris Lattner2006-05-121-0/+3
| | | | | | people aren't reusing machine code buffers at all. llvm-svn: 28228
* Fix some bugs in the freelist manipulation code.Chris Lattner2006-05-111-12/+33
| | | | | | Finally, implement ExecutionEngine::freeMachineCodeForFunction. llvm-svn: 28227
* Refactor scheduler code. Move register-reduction list scheduler to aEvan Cheng2006-05-114-932/+1104
| | | | | | | separate file. Added an initial implementation of top-down register pressure reduction list scheduler. llvm-svn: 28226
* Significantly revamp allocation of machine code to use free lists, realChris Lattner2006-05-111-51/+340
| | | | | | | allocation policies and much more. All this complexity, and we have no functionality change, woo! :) llvm-svn: 28225
* Refactor some code, making it simpler.Chris Lattner2006-05-111-31/+43
| | | | | | | | | | | When doing the initial pass of constant folding, if we get a constantexpr, simplify the constant expr like we would do if the constant is folded in the normal loop. This fixes the missed-optimization regression in Transforms/InstCombine/getelementptr.ll last night. llvm-svn: 28224
* Add MOV16_rm / MOV32_rm and MOV16_mr / MOV32_mr to isLoadFromStackSlot and ↵Evan Cheng2006-05-111-0/+4
| | | | | | isStoreToStackSlot llvm-svn: 28223
* Set weight of zero length intervals to infinite to prevent them from beingEvan Cheng2006-05-111-0/+19
| | | | | | spilled. llvm-svn: 28220
* Backing out previous check-in.Evan Cheng2006-05-111-16/+1
| | | | llvm-svn: 28219
* If the live interval legnth is essentially zero, i.e. in every live rangeEvan Cheng2006-05-101-1/+15
| | | | | | | the use follows def immediately, it doesn't make sense to spill it and hope it will be easier to allocate for this LI. llvm-svn: 28217
* Two changes:Chris Lattner2006-05-101-7/+72
| | | | | | | | | | | | | | | | 1. Implement InstCombine/deadcode.ll by not adding instructions in unreachable blocks (due to constants in conditional branches/switches) to the worklist. This causes them to be deleted before instcombine starts up, leading to better optimization. 2. In the prepass over instructions, do trivial constprop/dce as we go. This has the effect of improving the effectiveness of #1. In addition, it *significantly* speeds up instcombine on test cases with large amounts of constant folding code (for example, that produced by code specialization or partial evaluation). In one example, it speeds up instcombine from 0.0589s to 0.0224s with a release build (a 2.6x speedup). llvm-svn: 28215
* Fix the PowerPC JIT-only failure on UnitTests/Vector/sumarray-dbl, which isChris Lattner2006-05-101-2/+2
| | | | | | | really a bad codegen bug that LLC happens to get lucky with. I must chat with Nate for the proper fix. llvm-svn: 28213
* Templatify RegReductionPriorityQueueEvan Cheng2006-05-101-7/+12
| | | | llvm-svn: 28212
* Add an assertion for a common errorChris Lattner2006-05-101-1/+4
| | | | llvm-svn: 28210
* Fix PR773Nate Begeman2006-05-091-2/+20
| | | | llvm-svn: 28207
* Fix a regression in my patch from last night that broke the llvmgcc4 build onChris Lattner2006-05-091-1/+1
| | | | | | ppc llvm-svn: 28205
* Indent .data/.text in the .s fileChris Lattner2006-05-091-5/+5
| | | | llvm-svn: 28204
* Add pseudo dependency to force a def&use operand to be scheduled last (unlessEvan Cheng2006-05-091-17/+108
| | | | | | | the distance between the def and another use is much longer). This is under option control for now "-sched-lower-defnuse". llvm-svn: 28201
OpenPOWER on IntegriCloud