- Nov 30, 2004
-
-
Chris Lattner authored
llvm-svn: 18381
-
Chris Lattner authored
addi r3, r3, -1 instead of addi r3, r3, 1 for 'sub int X, 1'. Secondarily, this fixes several cases where we could crash given an unsigned constant. And fixes a couple of minor missed optimization cases, such as xor X, ~0U -> not X llvm-svn: 18379
-
Reid Spencer authored
bytecode files. This should help linking substantially. llvm-svn: 18378
-
Chris Lattner authored
This only fails on darwin or on X86 under valgrind. llvm-svn: 18377
-
Chris Lattner authored
llvm-svn: 18376
-
Chris Lattner authored
llvm-svn: 18374
-
Chris Lattner authored
llvm-svn: 18371
-
Chris Lattner authored
llvm-svn: 18369
-
Chris Lattner authored
llvm-svn: 18368
-
Chris Lattner authored
if (x) { code ... } else { code ... } Turn it into: code if (x) { ... } else { ... } This reduces code size and in some common cases allows us to completely eliminate the conditional. This turns several if/then/else blocks in loops into straightline code in 179.art, turning the loops into single basic blocks (good for modsched even!). Maybe now brg will leave me alone ;-) llvm-svn: 18366
-
Chris Lattner authored
Remove extraneous namespacification. In particular, don't define llvm::llvm::createInternalGlobalMapperPass llvm-svn: 18365
-
- Nov 29, 2004
-
-
Chris Lattner authored
llvm-svn: 18363
-
Reid Spencer authored
implementation llvm-svn: 18358
-
Reid Spencer authored
llvm-svn: 18357
-
Reid Spencer authored
llvm-svn: 18356
-
Reid Spencer authored
SearchForAddressOfSymbol. llvm-svn: 18355
-
Reid Spencer authored
llvm-svn: 18353
-
Reid Spencer authored
more platforms than LLVM supports. llvm-svn: 18352
-
Reid Spencer authored
llvm-svn: 18346
-
Reid Spencer authored
llvm-svn: 18345
-
Reid Spencer authored
llvm-svn: 18344
-
Reid Spencer authored
opened as if it was a dynamic library so its symbols can be searched too. llvm-svn: 18341
-
Chris Lattner authored
to Brian and the Sun compiler for pointing out that the obvious works :) This also enables folding all long comparisons into setcc and branch instructions: before we could only do == and != For example, for: void test(unsigned long long A, unsigned long long B) { if (A < B) foo(); } We now generate: test: subl $4, %esp movl %esi, (%esp) movl 8(%esp), %eax movl 12(%esp), %ecx movl 16(%esp), %edx movl 20(%esp), %esi subl %edx, %eax sbbl %esi, %ecx jae .LBBtest_2 # UnifiedReturnBlock .LBBtest_1: # then call foo movl (%esp), %esi addl $4, %esp ret .LBBtest_2: # UnifiedReturnBlock movl (%esp), %esi addl $4, %esp ret Instead of: test: subl $12, %esp movl %esi, 8(%esp) movl %ebx, 4(%esp) movl 16(%esp), %eax movl 20(%esp), %ecx movl 24(%esp), %edx movl 28(%esp), %esi cmpl %edx, %eax setb %al cmpl %esi, %ecx setb %bl cmove %ax, %bx testb %bl, %bl je .LBBtest_2 # UnifiedReturnBlock .LBBtest_1: # then call foo movl 4(%esp), %ebx movl 8(%esp), %esi addl $12, %esp ret .LBBtest_2: # UnifiedReturnBlock movl 4(%esp), %ebx movl 8(%esp), %esi addl $12, %esp ret llvm-svn: 18330
-
Tanya Lattner authored
Reworked branching so we don't handle BAs specially. It just updates the branchTO regardless of what type of branch it is. llvm-svn: 18322
-
Tanya Lattner authored
Fixed bug where instructions in the kernel were not ordered right to preserve dependencies in a cycle. llvm-svn: 18314
-
- Nov 28, 2004
-
-
Reid Spencer authored
* Make sure we handle signed to unsigned conversion correctly * Move this visitSetCondInst case to its own method. llvm-svn: 18312
-
Chris Lattner authored
llvm-svn: 18311
-
Chris Lattner authored
llvm-svn: 18309
-
Chris Lattner authored
llvm-svn: 18308
-
Chris Lattner authored
PR449 llvm-svn: 18306
-
Chris Lattner authored
llvm-svn: 18303
-
Reid Spencer authored
llvm-svn: 18300
-
- Nov 27, 2004
-
-
Chris Lattner authored
a must alias set unless all of the pointers in the resultant set are must aliased together. llvm-svn: 18275
-
Chris Lattner authored
occurs many times in crafty llvm-svn: 18273
-
Nate Begeman authored
place to help bring up the PowerPC back end on Darwin. This code is no longer serves any purpose now that the AsmPrinter does the right thing all the time printing GlobalValues. --Cruft. llvm-svn: 18267
-
- Nov 26, 2004
-
-
Chris Lattner authored
llvm-svn: 18266
-
Chris Lattner authored
allows us to hoist more loads in some cases. llvm-svn: 18265
-
Chris Lattner authored
llvm-svn: 18264
-
Chris Lattner authored
llvm-svn: 18263
-
Chris Lattner authored
llvm-svn: 18262
-