Nick Lewycky
a3fd95b017
Tabs to spaces presto chango! Pointed out by Duncan Sands.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65523 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 09:08:43 +00:00
Nick Lewycky
b2b1c536d1
Fix typo.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65521 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 08:48:14 +00:00
Nick Lewycky
2be208745b
Fix typo!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65520 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 08:03:36 +00:00
Nick Lewycky
dcd158af27
Force 'llvm-config' to go first, optionally followed by lto and gold mixed in
...
with the rest of the parallel directories.
Build lto when possible on all platforms. Make gold to explicitly depend on
libLTO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65518 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 07:56:49 +00:00
Nick Lewycky
a15dc035a6
Remove libtool.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65517 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 07:44:16 +00:00
Chris Lattner
11398993d3
pic16 notes from Sanjiv. Just dumped in for now, will rearrange later.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65512 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 07:32:11 +00:00
Chris Lattner
c1771e3539
final random and incoherent notes after making it through all the commits.
...
Next step: making them more coherent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65511 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 07:29:17 +00:00
Zhou Sheng
a8d57fe96b
Ignore dbg info intrinsics when folding conditional branch to
...
conditional branch predecessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65509 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 06:56:37 +00:00
Nick Lewycky
677c2c2a62
Add the function attributes pass during LTO time.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65508 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 06:56:16 +00:00
Chris Lattner
d838fcd03d
more notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65507 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 06:47:09 +00:00
Chris Lattner
75e26caaca
add some notes from Nicolas G.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65503 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 05:20:36 +00:00
Owen Anderson
130abb29cc
Enable stack slot coloring DCE. Evan's spiller fixes were needed before this could happen.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65501 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 04:47:57 +00:00
Evan Cheng
236aa8a503
ADDS{D|S}rr_Int and MULS{D|S}rr_Int are not commutable. The users of these intrinsics expect the high bits will not be modified.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65499 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 03:12:02 +00:00
Evan Cheng
04cf3e39f3
The last commit was overly conservative. It's ok to reuse value that's already marked livein.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65498 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 03:02:21 +00:00
Evan Cheng
f792352c25
If an available register falls through to a succ block, unset the last kill. Sorry, it's impossible to reduce a sensible test case. It basically requires the moon and stars to align in order to cause a failure.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65497 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 02:30:42 +00:00
Bob Wilson
7b048b391f
Fix a duplicated word in a comment.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65496 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 00:58:09 +00:00
Julien Lerouge
1aa1f74a09
Fix a typo that prevents hello.mm from running (and runs hello.m twice).
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65493 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-26 00:16:33 +00:00
Evan Cheng
a87008d90b
Revert BuildVectorSDNode related patches: 65426, 65427, and 65296.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65482 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 22:49:59 +00:00
Dale Johannesen
8a36f509cd
Fix big-endian codegen bug. We're splitting up
...
overly long ints, e.g. i96, into pieces at PHIs
and the nodes that feed into them; however big-endian
reverses the order of the pieces (for some reason), and
wasn't doing it the same way on both sides, so
the pieces didn't match and runtime failures ensued.
Fixes 188.ammp and sqlite3 on ppc32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65481 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 22:39:13 +00:00
Devang Patel
053372dc3c
Print variable's display name in dwarf DIE.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65468 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 19:41:35 +00:00
Chris Lattner
58b1ac76d4
Fix PR3667
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65464 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 18:20:01 +00:00
Duncan Sands
411c285404
Check that records with a known constant size are not
...
copied field by LLVM field if the record has a variable
sized field in it. The problem is that the LLVM field
will not completely cover the variable sized gcc field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65463 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 18:10:49 +00:00
Zhou Sheng
9a7c743fc0
Don't block basic block with only SwitchInst to fold into predecessors.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65456 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 15:34:27 +00:00
Duncan Sands
326a4988ba
Flesh out the Ada section a little.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65448 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 11:59:06 +00:00
Duncan Sands
50723a94f4
The C backend does not support arbitrary precision integers.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65447 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 11:51:54 +00:00
Duncan Sands
07636eae92
Note on new type legalizer.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65446 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 11:50:08 +00:00
Duncan Sands
8524cb9fa5
Add note on support for arbitrary precision integers.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65445 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 11:37:39 +00:00
Chris Lattner
99f375b6c8
more notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65439 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 07:32:53 +00:00
Evan Cheng
e3d423244a
Clean up dwarf writer, part 1. This eliminated the horrible recursive getGlobalVariablesUsing and replaced it something readable. It eliminated use of slow UniqueVector and replaced it with StringMap, SmallVector, and DenseMap, etc. It also fixed some non-deterministic behavior.
...
This is a very minor compile time win.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65438 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 07:04:34 +00:00
Nick Lewycky
20babb112c
Add a totally synthetic situation I came up with while looking at a bug in
...
related code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65437 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 06:52:48 +00:00
Chris Lattner
74c80df2b8
random notes
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65436 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 06:34:50 +00:00
Nick Lewycky
d9f66e6ca3
Recommend against using Gold to build LLVM.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65435 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 06:29:47 +00:00
Chris Lattner
1f859860ba
don't know if there is a vmkit release to match 2.5
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65434 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 05:45:05 +00:00
Chris Lattner
f40c40bf93
update clang section
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65430 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 05:09:54 +00:00
Chris Lattner
38ab04cb44
rip out llvm 2.4 details to make room for 2.5
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65429 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 04:41:31 +00:00
Scott Michel
8f1579aedc
Expand tabs to spaces (overlooked in previous commit)
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65427 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 03:57:49 +00:00
Scott Michel
df38043a46
Remove all "cached" data from BuildVectorSDNode, preferring to retrieve
...
results via reference parameters.
This patch also appears to fix Evan's reported problem supplied as a
reduced bugpoint test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65426 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-25 03:12:50 +00:00
Mon P Wang
0d52ff1f7b
Added support to have TableGen provide information if an intrinsic (core
...
or target) can be overloaded or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65404 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 23:17:49 +00:00
Devang Patel
d8e880c670
If compile unit's language is not set then don't crash while dump'ing compile unit.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65402 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 23:15:09 +00:00
Daniel Dunbar
a7b42034fc
Extension of GEP in constant folder was broken (apparently this code
...
has never been run!).
- Sorry, don't know how to make an LLVM test case for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65383 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 19:10:46 +00:00
Dan Gohman
46bdfb0e6b
Rename ScalarEvolution's getIterationCount to getBackedgeTakenCount,
...
to more accurately describe what it does. Expand its doxygen comment
to describe what the backedge-taken count is and how it differs
from the actual iteration count of the loop. Adjust names and
comments in associated code accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65382 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 18:55:53 +00:00
Bill Wendling
57f0db833d
Overhaul my earlier submission due to feedback. It's a large patch, but most of
...
them are generic changes.
- Use the "fast" flag that's already being passed into the asm printers instead
of shoving it into the DwarfWriter.
- Instead of calling "MI->getParent()->getParent()" for every MI, set the
machine function when calling "runOnMachineFunction" in the asm printers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65379 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 08:30:20 +00:00
Owen Anderson
3d8bde8dfb
Add a debugging option for SSC DCE.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65375 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 05:44:18 +00:00
Bill Wendling
5aa4977fba
- Use the "Fast" flag instead of "OptimizeForSize" to determine whether to emit
...
a DBG_LABEL or not. We want to fall back to the original way of emitting debug
info when we're in -O0/-fast mode.
- Add plumbing in to pass the "Fast" flag to places that need it.
- XFAIL DebugInfo/deaddebuglabel.ll. This is finding 11 labels instead of 8. I
need to investigate still.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65367 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 02:35:30 +00:00
Dan Gohman
85937de26b
Add a testcase for the problem fixed in r65289.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65365 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 02:17:42 +00:00
Dan Gohman
0001e56f15
Fix a ValueTracking rule: RHS means operand 1, not 0. Add a simple
...
ashr instcombine to help expose this code. And apply the fix to
SelectionDAG's copy of this code too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65364 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 02:00:40 +00:00
Dan Gohman
c34fea3935
Generalize the ChangeCompareStride code, in preparation for
...
handling non-constant strides. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65363 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 01:58:00 +00:00
Dan Gohman
d0a90b9876
Preserve the DominanceFrontier analysis in the LoopDeletion pass.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65359 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 01:21:53 +00:00
Devang Patel
002ec1482c
gdb uses DW_AT_prototyped to identify K&R style in C based languages.
...
This fixes objc.dg/dwarf-prototypes.m scan-assembler DW_AT_prototyped from llvmgcc42 test suite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65357 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 00:52:19 +00:00
Bill Wendling
d1d1c8b3d5
Un-XFAIL this test.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65355 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-24 00:37:28 +00:00