- Dec 23, 2010
-
-
Chris Lattner authored
llvm-svn: 122513
-
Chris Lattner authored
llvm-svn: 122509
-
Chris Lattner authored
llvm-svn: 122507
-
Chris Lattner authored
llvm-svn: 122506
-
Torok Edwin authored
See http://caml.inria.fr/mantis/view.php?id=4166 If we call only external functions from a module, then its 'let _' bindings don't get executed, which means that the exceptions don't get registered for use in the C code. This in turn causes llvm_raise to call raise_with_arg() with a NULL pointer and cause a segmentation fault. The workaround is to declare all 'external' functions as 'val' in these .mli files. Also added a separate testcase (the testcase must call only external functions for the bug to occur). llvm-svn: 122497
-
Benjamin Kramer authored
Remove/fix invalid README entries. The well thought out strcpy function doesn't return a pointer to the end of the string. llvm-svn: 122496
-
Benjamin Kramer authored
llvm-svn: 122495
-
Andrew Trick authored
llvm-svn: 122491
-
Andrew Trick authored
Converted LiveRegCycles to LiveRegGens. It's easier to work with and allows multiple nodes per cycle. llvm-svn: 122474
-
Andrew Trick authored
llvm-svn: 122473
-
Andrew Trick authored
In the bottom-up selection DAG scheduling, handle two-address instructions that read/write unspillable registers. Treat the entire chain of two-address nodes as a single live range. llvm-svn: 122472
-
Mon P Wang authored
llvm-svn: 122462
-
Jeffrey Yasskin authored
new gcc warning that complains on self-assignments and self-initializations. llvm-svn: 122458
-
Bill Wendling authored
llvm-svn: 122457
-
Jim Grosbach authored
llvm-svn: 122456
-
Benjamin Kramer authored
DAGCombine add (sext i1), X into sub X, (zext i1) if sext from i1 is illegal. The latter usually compiles into smaller code. example code: unsigned foo(unsigned x, unsigned y) { if (x != 0) y--; return y; } before: _foo: ## @foo cmpl $1, 4(%esp) ## encoding: [0x83,0x7c,0x24,0x04,0x01] sbbl %eax, %eax ## encoding: [0x19,0xc0] notl %eax ## encoding: [0xf7,0xd0] addl 8(%esp), %eax ## encoding: [0x03,0x44,0x24,0x08] ret ## encoding: [0xc3] after: _foo: ## @foo cmpl $1, 4(%esp) ## encoding: [0x83,0x7c,0x24,0x04,0x01] movl 8(%esp), %eax ## encoding: [0x8b,0x44,0x24,0x08] adcl $-1, %eax ## encoding: [0x83,0xd0,0xff] ret ## encoding: [0xc3] llvm-svn: 122455
-
Benjamin Kramer authored
llvm-svn: 122453
-
Benjamin Kramer authored
int test(unsigned long a, unsigned long b) { return -(a < b); } compiles to _test: ## @test cmpq %rsi, %rdi ## encoding: [0x48,0x39,0xf7] sbbl %eax, %eax ## encoding: [0x19,0xc0] ret ## encoding: [0xc3] instead of _test: ## @test xorl %ecx, %ecx ## encoding: [0x31,0xc9] cmpq %rsi, %rdi ## encoding: [0x48,0x39,0xf7] movl $-1, %eax ## encoding: [0xb8,0xff,0xff,0xff,0xff] cmovael %ecx, %eax ## encoding: [0x0f,0x43,0xc1] ret ## encoding: [0xc3] llvm-svn: 122451
-
- Dec 22, 2010
-
-
Rafael Espindola authored
fixed. llvm-svn: 122448
-
Dan Gohman authored
llvm-svn: 122447
-
Rafael Espindola authored
if we have a lame assembler. llvm-svn: 122446
-
Jakob Stoklund Olesen authored
pick the victim with the lowest total spill weight. llvm-svn: 122445
-
Jakob Stoklund Olesen authored
llvm-svn: 122444
-
Rafael Espindola authored
better name and matches what is used in the MachO writer. llvm-svn: 122443
-
Daniel Dunbar authored
llvm-svn: 122441
-
Rafael Espindola authored
llvm-svn: 122438
-
Rafael Espindola authored
llvm-svn: 122427
-
Matt Beaumont-Gay authored
llvm-svn: 122419
-
Duncan Sands authored
the original instruction, half the cases were missed (making it not wrong but suboptimal). Also correct a typo (A <-> B) in the second chunk. llvm-svn: 122414
-
Duncan Sands authored
llvm-svn: 122413
-
Daniel Dunbar authored
esp. important given that the LOCAL_SECTDIFF enumeration got redefined. llvm-svn: 122412
-
Daniel Dunbar authored
MC/Mach-O/ARM: Clone off an ARM version of RecordScatteredRelocation until I figure out how it is supposed to work. llvm-svn: 122410
-
Daniel Dunbar authored
llvm-svn: 122409
-
Daniel Dunbar authored
llvm-svn: 122408
-
Daniel Dunbar authored
llvm-svn: 122407
-
Daniel Dunbar authored
llvm-svn: 122406
-
Rafael Espindola authored
llvm-svn: 122405
-
Rafael Espindola authored
llvm-svn: 122404
-
Daniel Dunbar authored
RecordRelocation with lots of FIXMEs. llvm-svn: 122402
-
Daniel Dunbar authored
llvm-svn: 122401
-