- Sep 18, 2005
-
-
Chris Lattner authored
struct S { unsigned int i : 6, j : 11, k : 15; } b; void plus3 (unsigned int x) { b.k += x; } To: plus3: mov %EAX, DWORD PTR [%ESP + 4] shl %EAX, 17 add DWORD PTR [b], %EAX ret instead of: plus3: mov %EAX, DWORD PTR [%ESP + 4] shl %EAX, 17 mov %ECX, DWORD PTR [b] add %EAX, %ECX and %EAX, -131072 and %ECX, 131071 or %ECX, %EAX mov DWORD PTR [b], %ECX ret llvm-svn: 23384
-
Chris Lattner authored
llvm-svn: 23383
-
Chris Lattner authored
llvm-svn: 23382
-
Chris Lattner authored
struct S { unsigned int i : 6, j : 11, k : 15; } b; void plus3 (unsigned int x) { b.k += x; } to: _plus3: lis r2, ha16(L_b$non_lazy_ptr) lwz r2, lo16(L_b$non_lazy_ptr)(r2) lwz r3, 0(r2) rlwinm r4, r3, 0, 0, 14 add r4, r4, r3 rlwimi r4, r3, 0, 15, 31 stw r4, 0(r2) blr instead of: _plus3: lis r2, ha16(L_b$non_lazy_ptr) lwz r2, lo16(L_b$non_lazy_ptr)(r2) lwz r4, 0(r2) srwi r5, r4, 17 add r3, r5, r3 slwi r3, r3, 17 rlwimi r3, r4, 0, 15, 31 stw r3, 0(r2) blr llvm-svn: 23381
-
Chris Lattner authored
struct S { unsigned int i : 6, j : 11, k : 15; } b; void plus1 (unsigned int x) { b.i += x; } as: _plus1: lis r2, ha16(L_b$non_lazy_ptr) lwz r2, lo16(L_b$non_lazy_ptr)(r2) lwz r4, 0(r2) add r3, r4, r3 rlwimi r3, r4, 0, 0, 25 stw r3, 0(r2) blr instead of: _plus1: lis r2, ha16(L_b$non_lazy_ptr) lwz r2, lo16(L_b$non_lazy_ptr)(r2) lwz r4, 0(r2) rlwinm r5, r4, 0, 26, 31 add r3, r5, r3 rlwimi r3, r4, 0, 0, 25 stw r3, 0(r2) blr llvm-svn: 23379
-
Chris Lattner authored
llvm-svn: 23377
-
Chris Lattner authored
struct { unsigned int bit0:1; unsigned int ubyte:31; } sdata; void foo() { sdata.ubyte++; } into this: foo: add DWORD PTR [sdata], 2 ret instead of this: foo: mov %EAX, DWORD PTR [sdata] mov %ECX, %EAX add %ECX, 2 and %ECX, -2 and %EAX, 1 or %EAX, %ECX mov DWORD PTR [sdata], %EAX ret llvm-svn: 23376
-
- Sep 14, 2005
-
-
Chris Lattner authored
llvm-svn: 23348
-
- Sep 13, 2005
-
-
Chris Lattner authored
This is useful for 178.galgel where resolution of dope vectors (by the optimizer) causes the scales to become apparent. llvm-svn: 23328
-
Chris Lattner authored
indentation, no functionality change llvm-svn: 23325
-
Chris Lattner authored
if () { store A -> P; } else { store B -> P; } into a PHI node with one store, in the most trival case. This implements load.ll:test10. llvm-svn: 23324
-
Chris Lattner authored
each other. This implements InstCombine/load.ll:test9 llvm-svn: 23322
-
Chris Lattner authored
load are exactly consequtive. This is picked up by other passes, but this triggers thousands of times in fortran programs that use static locals (and is thus a compile-time speedup). llvm-svn: 23320
-
- Aug 08, 2005
-
-
Chris Lattner authored
easier to understand? :) llvm-svn: 22706
-
- Aug 07, 2005
-
-
Chris Lattner authored
isHighOnes, where it would consider 0 to have high ones. llvm-svn: 22693
-
- Aug 05, 2005
-
-
Chris Lattner authored
the PHI node, this ugly code can vanish. llvm-svn: 22672
-
Nate Begeman authored
BasicBlock's removePredecessor routine. This requires shuffling around the definition and implementation of hasContantValue from Utils.h,cpp into Instructions.h,cpp llvm-svn: 22664
-
- Aug 02, 2005
-
-
Chris Lattner authored
Patch contributed by Jim Laskey! llvm-svn: 22592
-
- Jul 27, 2005
-
-
Jeff Cohen authored
llvm-svn: 22523
-
- Jul 20, 2005
-
-
Chris Lattner authored
explained in the comment. This fixes UnitTests/2003-09-18-BitFieldTest on darwin llvm-svn: 22483
-
- Jul 19, 2005
-
-
Chris Lattner authored
as a signed compare. This patch may fix PR597, but is correct in any case. llvm-svn: 22465
-
- Jul 07, 2005
-
-
Chris Lattner authored
Because the instcombine has to scan the entire function when it starts up to begin with, we might as well do it in DFO so we can nuke unreachable code. This fixes: Transforms/InstCombine/2005-07-07-DeadPHILoop.ll llvm-svn: 22348
-
- Jun 18, 2005
-
-
Reid Spencer authored
GCC 4.0.0 compiler (sometimes incorrectly) warns about under release build. llvm-svn: 22249
-
- Jun 17, 2005
-
-
Chris Lattner authored
It is actually always true. This fixes PR586 and Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll llvm-svn: 22236
-
Chris Lattner authored
Transforms/InstCombine/2005-06-16-RangeCrash.ll llvm-svn: 22234
-
Chris Lattner authored
llvm-svn: 22230
-
- Jun 16, 2005
-
-
Chris Lattner authored
llvm-svn: 22227
-
Chris Lattner authored
llvm-svn: 22225
-
Chris Lattner authored
is always ubyte, get the type being shifted). This unbreaks espresso llvm-svn: 22224
-
- Jun 15, 2005
-
-
Chris Lattner authored
Do not perform undefined out of range shifts. llvm-svn: 22217
-
Reid Spencer authored
allows test programs to succeed. Actual fix for this is forthcoming. llvm-svn: 22213
-
- Jun 13, 2005
-
-
Reid Spencer authored
fix the bzip2 test. A better hack is needed. llvm-svn: 22209
-
- Jun 04, 2005
-
-
Andrew Lenharth authored
llvm-svn: 22192
-
- May 14, 2005
-
-
Chris Lattner authored
llvm-svn: 22024
-
- May 13, 2005
-
-
Chris Lattner authored
instruction. This is useful for catching optimizers that don't preserve calling conventions llvm-svn: 21928
-
- May 09, 2005
-
-
Chris Lattner authored
llvm-svn: 21809
-
- May 08, 2005
-
-
Chris Lattner authored
in. This tends to get cases like this: X = cast ubyte to int Y = shr int X, ... Tested by: shift.ll:test24 llvm-svn: 21775
-
Chris Lattner authored
llvm-svn: 21770
-
- May 06, 2005
-
-
Chris Lattner authored
llvm-svn: 21737
-
Chris Lattner authored
and.ll:test31 llvm-svn: 21717
-