Daniel Dunbar
89e9f2b1c1
Add another required #include for freestanding .h files.
...
llvm-svn: 84322
2009-10-17 08:12:36 +00:00
Evan Cheng
d941e8b23a
Revert 84315 for now. Re-thinking the patch.
...
llvm-svn: 84321
2009-10-17 07:53:04 +00:00
Evan Cheng
12dd96e2f8
Rename getFixedStack to getStackObject. The stack objects represented are not
...
necessarily fixed. Only those will negative frame indices are "fixed."
llvm-svn: 84315
2009-10-17 06:22:26 +00:00
Evan Cheng
33ffbd3518
80 col violation.
...
llvm-svn: 84311
2009-10-17 06:05:11 +00:00
Chris Lattner
7f32b72975
Simplify some code (first hunk) and fix PR5208 (second hunk) by
...
updating the callgraph when introducing a call.
llvm-svn: 84310
2009-10-17 05:39:39 +00:00
Chris Lattner
fa8927e20c
check in a bunch of content from TestingGuide. Part of PR5216
...
llvm-svn: 84309
2009-10-17 04:47:42 +00:00
Daniel Dunbar
64f0182a28
llvm-as: Simplify, and don't create empty output files with -disable-output.
...
llvm-svn: 84304
2009-10-17 03:28:28 +00:00
Daniel Dunbar
7f9b7bc8ff
Reclaim a lost month.
...
llvm-svn: 84303
2009-10-17 03:28:20 +00:00
Daniel Dunbar
65c6507ca8
Add required #includes for freestanding .h files.
...
llvm-svn: 84302
2009-10-17 03:28:07 +00:00
Dan Gohman
0a76c903df
Delete an obsolete comment.
...
llvm-svn: 84300
2009-10-17 01:37:38 +00:00
Victor Hernandez
a25a2890fa
Remove MallocInst from LLVM Instructions.
...
llvm-svn: 84299
2009-10-17 01:18:07 +00:00
Dan Gohman
f5225573b7
Enhance CodePlacementOpt's unconditional intra-loop branch elimination logic
...
to be more general and understand more varieties of loops.
Teach CodePlacementOpt to reorganize the basic blocks of a loop so that
they are contiguous. This also includes a fair amount of logic for preserving
fall-through edges while doing so. This fixes a BranchFolding-ism where blocks
which can't be made to use a fall-through edge and don't conveniently fit
anywhere nearby get tossed out to the end of the function.
llvm-svn: 84295
2009-10-17 00:32:43 +00:00
Dan Gohman
2e25e88d46
Add a splice member function which accepts a range instead of a
...
single iterator.
llvm-svn: 84294
2009-10-17 00:28:24 +00:00
Victor Hernandez
4d7283f82c
Autoupgrade malloc insts to malloc calls.
...
Update testcases that rely on malloc insts being present.
Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step.
llvm-svn: 84292
2009-10-17 00:00:19 +00:00
Victor Hernandez
00adf339dd
HeapAllocSRoA also needs to check if malloc array size can be computed.
...
llvm-svn: 84288
2009-10-16 23:12:25 +00:00
Mon P Wang
72d9f1ecfe
Update tests to use FileCheck
...
llvm-svn: 84282
2009-10-16 22:09:05 +00:00
Mon P Wang
7d294603e7
Add test case for r84279
...
llvm-svn: 84280
2009-10-16 22:07:19 +00:00
Mon P Wang
385786cdcf
Allow widening of extract subvector
...
llvm-svn: 84279
2009-10-16 22:05:48 +00:00
Devang Patel
4790ea6ca2
Do not emit name entry for a pointer type.
...
llvm-svn: 84276
2009-10-16 21:27:43 +00:00
Evan Cheng
e1fbdc5244
Change createPostRAScheduler so it can be turned off at llc -O1.
...
llvm-svn: 84273
2009-10-16 21:06:15 +00:00
Evan Cheng
96e3c797d1
Add a CodeGenOpt::Less level to match -O1. It'll be used by clients which do not want post-regalloc scheduling.
...
llvm-svn: 84272
2009-10-16 21:02:20 +00:00
Dan Gohman
ef1f246d88
Move zext and sext casts fed by loads into the same block as the
...
load, to help SelectionDAG fold them into the loads, unless
conditions are unfavorable.
llvm-svn: 84271
2009-10-16 20:59:35 +00:00
Devang Patel
a4ac3dd8bc
Parse PHI instruction with attached metadata.
...
llvm-svn: 84264
2009-10-16 18:45:49 +00:00
Devang Patel
5920acc861
If there is not any llvm instruction associated with each lexical scope encoded in debug info then create such scope on demand for variable info.
...
llvm-svn: 84262
2009-10-16 18:18:03 +00:00
Victor Hernandez
6d11519b1f
Invert isSafeToGetMallocArraySize check because we return NULL when we don't know the size.
...
Thanks to Duncan Sands for noticing this bug.
llvm-svn: 84261
2009-10-16 18:08:17 +00:00
Victor Hernandez
0122f679a8
Invert isSafeToGetMallocArraySize check because we return NULL when we don't know the size.
...
Thanks to Duncan Sands for noticing this bug.
llvm-svn: 84260
2009-10-16 18:07:17 +00:00
Chris Lattner
adba165c5c
Update from Cristina, llvm-gcc doesn't build on the SPARC version of solaris
...
at the moment.
llvm-svn: 84258
2009-10-16 16:30:58 +00:00
Daniel Dunbar
9483297711
Force triple in tests.
...
llvm-svn: 84257
2009-10-16 16:30:02 +00:00
Duncan Sands
4cde5474aa
Strip trailing white space.
...
llvm-svn: 84256
2009-10-16 15:20:13 +00:00
Duncan Sands
71fecaa52c
Check that GVN performs this transform even if the calls
...
themselves are not marked readonly, but only the called
functions.
llvm-svn: 84253
2009-10-16 12:18:23 +00:00
Benjamin Kramer
9975abcc38
Update CMake file.
...
llvm-svn: 84252
2009-10-16 10:29:08 +00:00
Sanjiv Gupta
f516a9b2a4
Cleaned up some code. No functionality change.
...
llvm-svn: 84251
2009-10-16 08:58:34 +00:00
Evan Cheng
4df1ac5722
I am no spelling bee.
...
llvm-svn: 84250
2009-10-16 06:18:09 +00:00
Evan Cheng
b1580b5c48
Enable post-alloc scheduling for all ARM variants except for Thumb1.
...
llvm-svn: 84249
2009-10-16 06:11:08 +00:00
Evan Cheng
dde3e4fe11
If post-alloc scheduler is not enabled, it should return false, not true.
...
llvm-svn: 84248
2009-10-16 06:10:34 +00:00
Zhongxing Xu
03d844a262
Indent code.
...
llvm-svn: 84247
2009-10-16 05:42:28 +00:00
Evan Cheng
8685a8ec0c
Add comment.
...
llvm-svn: 84246
2009-10-16 05:33:58 +00:00
Evan Cheng
04e4a8a961
80 column violation.
...
llvm-svn: 84244
2009-10-16 05:18:39 +00:00
Bob Wilson
c415e33929
Fix more NEON instruction encodings.
...
Patch by Johnny Chen.
llvm-svn: 84243
2009-10-16 03:58:44 +00:00
Chris Lattner
5d2b384837
Add half precision floating point support (float16) to APFloat,
...
patch by Peter Johnson! (PR5195)
llvm-svn: 84239
2009-10-16 02:13:51 +00:00
Chris Lattner
87bcf3b242
add haiku support, patch by Paul Davey!
...
llvm-svn: 84238
2009-10-16 02:06:30 +00:00
Daniel Dunbar
2be596c127
MC: Set symbol values in MachO MCStreamer.
...
llvm-svn: 84236
2009-10-16 01:58:23 +00:00
Daniel Dunbar
4943610506
Minor formatting tweaks.
...
llvm-svn: 84235
2009-10-16 01:58:15 +00:00
Daniel Dunbar
0df659c00b
MC: Switch assembler API to using MCExpr instead of MCValue.
...
llvm-svn: 84234
2009-10-16 01:58:03 +00:00
Daniel Dunbar
022b59a0b5
MC: Remove unneeded context argument to MCExpr::Evaluate*.
...
llvm-svn: 84233
2009-10-16 01:57:52 +00:00
Daniel Dunbar
af3162e523
MC: Tweak variable assignment diagnostics, and make reassignment of non-absolute
...
variables and symbols invalid.
llvm-svn: 84232
2009-10-16 01:57:39 +00:00
Daniel Dunbar
a4df6e46a4
MC: When parsing a variable reference, substitute absolute variables immediately
...
since they are allowed to be redefined.
llvm-svn: 84230
2009-10-16 01:34:54 +00:00
Daniel Dunbar
6b7edc035b
MC: Move assembler variable values from MCContext to MCSymbol.
...
llvm-svn: 84229
2009-10-16 01:33:57 +00:00
Daniel Dunbar
c5165c4258
MC: Switch MCContext value table to storing MCExprs.
...
llvm-svn: 84228
2009-10-16 01:33:11 +00:00
Evan Cheng
54b34ff68d
When checking aliases between phi sources and V2, we know the sources are not themselves phi nodes. However, V2 may be. Call aliasCheck with V2 first to potentially eliminate a std::swap call.
...
llvm-svn: 84226
2009-10-16 00:33:09 +00:00