Jakob Stoklund Olesen
c6377253f7
Enable ARM base pointer when calling functions with large arguments.
...
When an outgoing call takes more than 2k of arguments on the stack, we
don't allocate that call frame in the prolog, but adjust the stack
pointer immediately before the call instead.
This causes problems with the emergency spill slot because PEI can't
track stack pointer adjustments on the second pass, and if the outgoing
arguments are too big, SP can't be used to reach the emergency spill
slot at all.
Work around these problems by ensuring there is a base or frame pointer
that can be used to access the emergency spill slot.
<rdar://problem/10917166>
llvm-svn: 151604
2012-02-28 01:15:01 +00:00
Michael J. Spencer
0aef1b9f18
[Object] Add {begin,end}_dynamic_symbols stubs and implementation for ELF.
...
Add -D option to llvm-nm to dump dynamic symbols.
Patch by David Meyer.
llvm-svn: 151600
2012-02-28 00:40:37 +00:00
Chad Rosier
2eec1f2ac0
Fix 80-column violation.
...
llvm-svn: 151599
2012-02-28 00:23:01 +00:00
Hal Finkel
7b7047a2af
Allow llvm-stress to optionally generate the other floating-point types (half, ppcf128, mmx, etc.)
...
llvm-svn: 151596
2012-02-27 23:59:33 +00:00
Bill Wendling
aa73b7af8d
Add back removed code. It still causes LLVM to miscompile. But not having it breaks other things.
...
llvm-svn: 151594
2012-02-27 23:48:30 +00:00
Preston Gurd
e0609ed607
This patch adds instruction latencies for the SSE instructions
...
to the instruction scheduler for the Intel Atom.
llvm-svn: 151590
2012-02-27 23:35:03 +00:00
Preston Gurd
81931b8e3b
test commit.
...
llvm-svn: 151588
2012-02-27 23:31:51 +00:00
Eli Friedman
1ff1d1f1bc
Duncan pointed out that if the alignment isn't explicitly specified, it defaults to the ABI alignment. Given that, make this code a bit more aggressive in such cases.
...
llvm-svn: 151584
2012-02-27 23:16:46 +00:00
Evandro Menezes
aa5e01bb84
Delete incorrect reference to inexistent Hexagon architecture manuals.
...
llvm-svn: 151582
2012-02-27 23:00:52 +00:00
Bill Wendling
f1e75dd4b1
Don't use #if 0. Just remove until I can address this.
...
llvm-svn: 151580
2012-02-27 22:55:40 +00:00
Bill Wendling
42454c257c
XFAIL test until <rdar://problem/10913281> is fixed.
...
llvm-svn: 151578
2012-02-27 22:53:42 +00:00
Bill Wendling
0f3c5db06e
The code that cleans up multiple, isomorphic types has a subtle error that
...
manifests itself when building LLVM with LTO.
<rdar://problem/10913281>
llvm-svn: 151576
2012-02-27 22:34:19 +00:00
Michael J. Spencer
2a44e34fec
Remove duplicate copy of Object/ELF.h that somehow managed to get in.
...
Patch by David Meyer.
llvm-svn: 151575
2012-02-27 22:06:44 +00:00
Evan Cheng
9627003887
Fix for PR12090: clear def maps of aliases when visiting a copy. e.g.
...
%S5<def> = COPY %S0<kill>
First clear def map of Q1, etc.
No small test case available.
llvm-svn: 151574
2012-02-27 21:46:42 +00:00
Jim Grosbach
02bf78f5ca
ARM BL/BLX instruction fixups should use relocations.
...
We on the linker to resolve calls to the appropriate BL/BLX instruction
to make interworking function correctly. It uses the symbol in the
relocation to do that, so we need to be careful about being too clever.
To enable this for ARM mode, split the BL/BLX fixup kind off from the
unconditional-branch fixups.
rdar://10927209
llvm-svn: 151571
2012-02-27 21:36:23 +00:00
Argyrios Kyrtzidis
20ba865302
Move "clang/Analysis/Support/SaveAndRestore.h" to "llvm/ADT/SaveAndRestore.h"
...
to make it more widely available.
llvm-svn: 151564
2012-02-27 21:08:33 +00:00
Eli Friedman
15f56db6c0
Teach BasicAA about the LLVM IR rules that allow reading past the end of an object given sufficient alignment. Fixes PR12098.
...
llvm-svn: 151553
2012-02-27 20:46:07 +00:00
Roman Divacky
588712f080
Test the section specification.
...
llvm-svn: 151552
2012-02-27 20:42:19 +00:00
Derek Schuff
999fd3acef
Fix PR12089
...
http://llvm.org/bugs/show_bug.cgi?id=12089
llvm-svn: 151550
2012-02-27 20:31:47 +00:00
Roman Divacky
200acf8e6e
Reapply r151278 with fixes.
...
MCize function entry label emission on PowerPC64 properly.
llvm-svn: 151547
2012-02-27 20:20:47 +00:00
Chad Rosier
ff495392fa
Add q suffix aliases for the fistp and fisttp mnemonics.
...
rdar://10921670
PR11935
llvm-svn: 151543
2012-02-27 19:43:12 +00:00
Akira Hatanaka
28521d25c9
Remove unnecessary template parameters.
...
llvm-svn: 151540
2012-02-27 19:17:53 +00:00
Akira Hatanaka
1e3ba02d8d
Fix instruction predicates that were not set correctly.
...
llvm-svn: 151538
2012-02-27 19:09:08 +00:00
Jakob Stoklund Olesen
edc3446412
Update machine code verifier.
...
After the SlotIndex slot names were updated, it is possible to apply
stricter checks to live intervals.
Also treat bundles as bags of operands when checking live intervals.
llvm-svn: 151531
2012-02-27 18:24:30 +00:00
Kevin Enderby
91d284c5de
Fix the symbolic operand added for the C disassmbler API for the ARM bl
...
thumb instruction. The PC adjustment is +4 in Thumb mode and +8 in ARM mode.
llvm-svn: 151530
2012-02-27 18:15:15 +00:00
Jakob Stoklund Olesen
381eeb2932
Add a MachineOperand iterator class.
...
The MIOperands iterator can visit operands on a single instruction, or
all operands in a bundle. This simplifies code like the register
allocator that treats bundles as a set of operands.
llvm-svn: 151529
2012-02-27 18:09:36 +00:00
Benjamin Kramer
e96ae5392c
Plog a memleak in GlobalOpt.
...
Found by valgrind.
llvm-svn: 151525
2012-02-27 12:48:24 +00:00
Duncan Sands
0f1520e70b
Micro-optimization, no functionality change.
...
llvm-svn: 151524
2012-02-27 12:11:41 +00:00
Jay Foad
e019c92c2a
Help the compiler to eliminate some dead code when hashing an array of T
...
where sizeof (T) is a multiple of 4.
llvm-svn: 151523
2012-02-27 11:00:17 +00:00
Duncan Sands
7dc8ff6615
The value numbering function is recursive, so it is possible for multiple new
...
value numbers to be assigned when calculating any particular value number.
Enhance the logic that detects new value numbers to take this into account,
for a tiny compile time speedup. Fix a comment typo while there.
llvm-svn: 151522
2012-02-27 09:54:35 +00:00
Duncan Sands
9e95178a81
When performing a conditional branch depending on the value of a comparison
...
%cmp (eg: A==B) we already replace %cmp with "true" under the true edge, and
with "false" under the false edge. This change enhances this to replace the
negated compare (A!=B) with "false" under the true edge and "true" under the
false edge. Reported to improve perlbench results by 1%.
llvm-svn: 151517
2012-02-27 08:14:30 +00:00
Craig Topper
9d9d92eab0
Remove HexagonGenIntrinsics.inc from Hexagon cmake file. It does not appear in the Makefile and the output it produces isn't used. The Hexagon intrinsics are all in the global Intrinsics.gen.
...
llvm-svn: 151514
2012-02-27 02:59:43 +00:00
Craig Topper
ae4e236c50
Update tblgen command guide. Remove unused tblgen InstrEnumEmitter files.
...
llvm-svn: 151513
2012-02-27 02:31:09 +00:00
Jia Liu
65a3b4e8b8
delete useless comment&blank
...
llvm-svn: 151512
2012-02-27 02:21:34 +00:00
Rafael Espindola
2d9b864afe
Fix this assert. IP can point to an instruction with strange dominance
...
properties (invoke). Just assert that the instruction we return dominates
the insertion point.
llvm-svn: 151511
2012-02-27 02:13:03 +00:00
Craig Topper
ab46706aa9
X86 disassembler support for jcxz, jecxz, and jrcxz. Fixes PR11643. Patch by Kay Tiong Khoo.
...
llvm-svn: 151510
2012-02-27 01:54:29 +00:00
Chad Rosier
3c578aa81b
Remove more GCC FE build stuff.
...
llvm-svn: 151507
2012-02-26 22:26:37 +00:00
Chad Rosier
9457d2b63a
Installing the GCC front end is no longer supported.
...
llvm-svn: 151506
2012-02-26 22:17:05 +00:00
Chad Rosier
cb11644ed8
Cleanup the LLVM Getting Started page.
...
llvm-svn: 151505
2012-02-26 22:12:59 +00:00
Chad Rosier
9458712b9a
Add href to clang in overview.
...
llvm-svn: 151503
2012-02-26 21:34:02 +00:00
Chad Rosier
d8384abc3c
Remove references to llvm-gcc from overview and tutorial.
...
llvm-svn: 151502
2012-02-26 21:31:25 +00:00
Nadav Rotem
6eccbedc5f
Add support for random constant vectors.
...
Patch by Joey Gouly.
llvm-svn: 151489
2012-02-26 13:56:18 +00:00
Nadav Rotem
65d5297fd2
Style fix: Remove unneeded parentheses.
...
llvm-svn: 151488
2012-02-26 12:34:17 +00:00
Nadav Rotem
2449d16831
Fix a bug in the code that checks if a store value is a vector of i1s
...
llvm-svn: 151487
2012-02-26 12:00:22 +00:00
Nadav Rotem
3680054079
Fix compilation on MSVC. Rename "_BB" to "Block"
...
Thanks zygoloid.
llvm-svn: 151481
2012-02-26 08:59:25 +00:00
Nadav Rotem
a77007fc95
fix a copy-and-paste error in the docs
...
llvm-svn: 151480
2012-02-26 08:43:43 +00:00
Nadav Rotem
8ce0029942
Add a random .LL file generator to stress-test different llvm components.
...
llvm-svn: 151479
2012-02-26 08:35:53 +00:00
Rafael Espindola
868ea25522
Add testcase for the previous commit.
...
llvm-svn: 151475
2012-02-26 05:49:57 +00:00
Rafael Espindola
c333947449
Don't call dominates on unreachable instructions. Should fix the dragonegg
...
build. Testcase is still reducing.
llvm-svn: 151474
2012-02-26 05:30:08 +00:00
Hal Finkel
abe41f723f
Default TargetData alignment information for 128-bit floating-point types.
...
llvm-svn: 151473
2012-02-26 04:13:31 +00:00