Daniel Dunbar [Tue, 20 Oct 2009 05:15:36 +0000 (05:15 +0000)]
Wire up the ARM MCInst printer, for llvm-mc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84600
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 20 Oct 2009 04:50:37 +0000 (04:50 +0000)]
Re-apply r84295, with fixes to how the loop "top" and "bottom" blocks are
tracked. Instead of trying to manually keep track of these locations
while doing complex modifications, just recompute them when they're needed.
This fixes a bug in which the TopMBB and BotMBB were not correctly updated,
leading to invalid transformations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84598
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 20 Oct 2009 04:23:20 +0000 (04:23 +0000)]
Trim unnecessary includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84597
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 20 Oct 2009 04:16:37 +0000 (04:16 +0000)]
Add getTopBlock and getBottomBlock member functions to MachineLoopInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84596
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 20 Oct 2009 04:09:50 +0000 (04:09 +0000)]
Correct test for PowerPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84595
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 20 Oct 2009 02:23:13 +0000 (02:23 +0000)]
Revert "Tweak top-level Makefile to facilitate Apple-style build.", this is
breaking Clang's Apple-style build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84592
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 20 Oct 2009 02:23:05 +0000 (02:23 +0000)]
NNT: Remove duplicate verbose print.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84591
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 20 Oct 2009 01:32:47 +0000 (01:32 +0000)]
Now that all ARM subtargets use frame index scavenging, the Thumb1 requires*
functions are not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84587
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 20 Oct 2009 01:31:09 +0000 (01:31 +0000)]
If the physical register being spilled does not have an interval, spill its sub-registers instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84586
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 20 Oct 2009 01:26:58 +0000 (01:26 +0000)]
Enable post-pass frame index register scavenging for ARM and Thumb2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84585
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Oct 2009 01:11:37 +0000 (01:11 +0000)]
lower ARM::MOVi32imm properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84583
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Oct 2009 00:56:16 +0000 (00:56 +0000)]
add support for external symbols. The mc instprinter can now handle
reasonable code like Codegen/ARM/2009-02-27-SpillerBug.ll, producing
identical output except for superior formatting of constant pool entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84582
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Oct 2009 00:52:47 +0000 (00:52 +0000)]
get fancy: support basic block operands. Yay for jumps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84579
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Oct 2009 00:46:11 +0000 (00:46 +0000)]
add supprort for the 'sbit' operand, MOVi apparently has one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84577
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Oct 2009 00:42:49 +0000 (00:42 +0000)]
add support for instruction predicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84575
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Oct 2009 00:40:56 +0000 (00:40 +0000)]
implement printSORegOperand, add lowering for the nasty and despicable MOVi2pieces :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84573
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 20 Oct 2009 00:38:19 +0000 (00:38 +0000)]
Refs: A8-598.
Leave Inst{11-8}, which represents the starting byte index of the extracted
result in the concatenation of the operands and is left unspecified.
Patch by Johnny Chen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84572
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 20 Oct 2009 00:19:08 +0000 (00:19 +0000)]
Add missing encoding bits to NLdSt class of instructions.
Patch by Johnny Chen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84570
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 23:35:57 +0000 (23:35 +0000)]
X86 should ignore implicit regs when lowering to MCInst also,
no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84567
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 23:31:43 +0000 (23:31 +0000)]
handle addmode4 modifiers, fix a fixme in printRegisterList
by ignoring all implicit regs when lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84566
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 23:05:23 +0000 (23:05 +0000)]
simplify by using the twine form of GetOrCreateSymbol
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84565
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 19 Oct 2009 23:00:00 +0000 (23:00 +0000)]
Updated cmake library dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84564
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 19 Oct 2009 22:57:03 +0000 (22:57 +0000)]
Enable allocation of R3 in Thumb1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84563
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 22:51:16 +0000 (22:51 +0000)]
use EmitLabel instead of text emission
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84562
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 22:49:00 +0000 (22:49 +0000)]
add a twine version of MCContext::GetOrCreateSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84561
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 22:33:05 +0000 (22:33 +0000)]
lower the ARM::CONSTPOOL_ENTRY pseudo op, giving us constant pool entries
like:
@ BB#1:
.align 2
LCPI1_0:
.long L_.str-(LPC0+8)
Note that proper indentation of the label :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84558
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 19 Oct 2009 22:27:30 +0000 (22:27 +0000)]
Adjust the scavenge register spilling to allow the target to choose an
appropriate restore location for the spill as well as perform the actual
save and restore.
The Thumb1 target uses this to make sure R12 is not clobbered while a spilled
scavenger register is live there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84554
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 22:23:04 +0000 (22:23 +0000)]
add MCInstLower support for lowering ARM::PICADD, a pseudo op for pic stuffola.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84553
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 19 Oct 2009 22:14:22 +0000 (22:14 +0000)]
Refactor lookup_or_add to contain _MUCH_ less duplicated code. Add support for
numbering first class aggregate instructions while we're at it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84547
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 22:09:23 +0000 (22:09 +0000)]
add register list and hacked up addrmode #4 support, we now get this:
_main:
stmsp! sp!, {r7, lr}
mov r7, sp
sub sp, sp, #4
mov r0, #0
str r0, [sp]
ldr r0, LCPI1_0
bl _printf
ldr r0, [sp]
mov sp, r7
ldmsp! sp!, {r7, pc}
Note the unhappy ldm/stm because of modifiers being ignored.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84546
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 21:59:25 +0000 (21:59 +0000)]
revert r84540, fixing build breakage I didn't see because of
broken makefile deps :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84544
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 21:57:05 +0000 (21:57 +0000)]
add addrmode2 support, getting us up to:
_main:
stm ,
mov r7, sp
sub sp, sp, #4
mov r0, #0
str r0, [sp]
ldr r0, LCPI1_0
bl _printf
ldr r0, [sp]
mov sp, r7
ldm ,
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84543
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 21:53:00 +0000 (21:53 +0000)]
add jump tables, constant pools and some trivial global
lowering stuff. We can now compile hello world to:
_main:
stm ,
mov r7, sp
sub sp, sp, #4
mov r0, #0
str r0,
ldr r0,
bl _printf
ldr r0,
mov sp, r7
ldm ,
Almost looks like arm code :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84542
91177308-0d34-0410-b5e6-
96231b3b80d8
Victor Hernandez [Mon, 19 Oct 2009 21:47:22 +0000 (21:47 +0000)]
Malloc calls are marked NoAlias, so the code below the isMalloc() check makes it redundant. Removing the isMalloc() check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84541
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 21:45:31 +0000 (21:45 +0000)]
pass mangler in as a reference instead of a pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84540
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 19 Oct 2009 21:24:28 +0000 (21:24 +0000)]
More refactoring...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84537
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 21:23:15 +0000 (21:23 +0000)]
reduce #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84536
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 21:21:39 +0000 (21:21 +0000)]
add printing support for SOImm operands, getting us to:
_main:
stm ,
mov r7, sp
sub sp, sp, #4
mov r0, #0
str r0,
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84535
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 19 Oct 2009 21:14:57 +0000 (21:14 +0000)]
Simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84533
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 20:59:55 +0000 (20:59 +0000)]
wire up some basic printOperand goodness, giving us stuff like this before
we abort:
_main:
stm ,
mov r7, sp
sub sp, sp,
mov r0,
str r0,
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84532
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 20:21:05 +0000 (20:21 +0000)]
add the files that go with the previous rev
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84531
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 20:20:46 +0000 (20:20 +0000)]
wire up skeletal support for having llc print instructions
through mcinst lowering -> mcinstprinter, when llc is passed
the -enable-arm-mcinst-printer flag. Currently this
is very "aborty".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84530
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 19 Oct 2009 20:11:52 +0000 (20:11 +0000)]
Banish ConstantsLock. It's serving no purpose other than slowing things down
at the moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84529
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 19:59:05 +0000 (19:59 +0000)]
wire up ARM's printMCInst method. Now llvm-mc should be able to produce
"something" when printing MCInsts, it will just be missing all the
operand info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84528
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 19:56:26 +0000 (19:56 +0000)]
stub out a minimal ARMInstPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84527
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 19:51:42 +0000 (19:51 +0000)]
remove strings from instructions who are never asmprinted.
All of these "subreg32" modifier instructions are handled
explicitly by the MCInst lowering phase. If they got to
the asmprinter, they would explode. They should eventually
be replace with correct use of subregs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84526
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 19 Oct 2009 18:49:59 +0000 (18:49 +0000)]
Clean up the JITResolver stub/callsite<->function maps.
The JITResolver maps Functions to their canonical stubs and all callsites for
lazily-compiled functions to their target Functions. To make Function
destruction work, I'm going to need to remove all callsites on destruction, so
this patch also adds the reverse mapping for that.
There was an incorrect assumption in here that the only stub for a function
would be the one caused by needing to lazily compile it, while x86-64 far calls
and dlsym-stubs could also cause such stubs, but I didn't look for a test case
that the assumption broke.
This also adds DenseMapInfo<AssertingVH> so I can use DenseMaps instead of
std::maps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84522
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:49:14 +0000 (18:49 +0000)]
simplify code, reducing string thrashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84521
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:44:38 +0000 (18:44 +0000)]
switch hidden gv stubs to use MachineModuleInfoMachO instead of a custom map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84520
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:38:33 +0000 (18:38 +0000)]
use MachineModuleInfoMachO for non-lazy gv stubs instead of a private map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84519
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:27:56 +0000 (18:27 +0000)]
convert to filecheck syntax and make a lot more aggressive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84517
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 19 Oct 2009 18:21:09 +0000 (18:21 +0000)]
Revert r84295, this unbreaks llvm-gcc bootstrap on x86-64/linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84516
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:18:07 +0000 (18:18 +0000)]
rename test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84515
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:11:25 +0000 (18:11 +0000)]
remove dead map
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84513
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:08:02 +0000 (18:08 +0000)]
don't bother trying to avoid emitting redundant constant pool alignment directives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84512
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:03:41 +0000 (18:03 +0000)]
remove accidental comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84510
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 18:03:08 +0000 (18:03 +0000)]
emit .subsections_via_symbols through MCStreamer instead of textually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84509
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 17:59:19 +0000 (17:59 +0000)]
cleanup doFinalization -> EmitEndOfAsmFile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84508
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Mon, 19 Oct 2009 17:53:54 +0000 (17:53 +0000)]
Tweak top-level Makefile to facilitate Apple-style build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84507
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Mon, 19 Oct 2009 17:31:16 +0000 (17:31 +0000)]
PR 5245 - The imediate size target flag was not set on 3A-prefixed SSSE3 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84506
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 19 Oct 2009 16:04:50 +0000 (16:04 +0000)]
Fix SplitBlockPredecessors' LoopInfo updating code to handle the case
where a loop's header is being split and it has predecessors which are not
contained by the most-nested loop which contains the loop.
This fixes PR5235.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84505
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 19 Oct 2009 14:56:05 +0000 (14:56 +0000)]
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84504
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 19 Oct 2009 14:52:05 +0000 (14:52 +0000)]
Change a few instance variables to be local variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84503
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 19 Oct 2009 14:47:32 +0000 (14:47 +0000)]
Change instnamer to name arguments "arg" instead of "tmp" for clarity, and
to name basic blocks "bb" instead of "BB", for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84502
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:56 +0000 (13:20 +0000)]
NNT: Add -parallel-test option, which runs llvm-test with
ENABLE_PARALLEL_REPORT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84497
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:50 +0000 (13:20 +0000)]
NNT: Don't hard code -l3.0 argument to make, this is very server dependent. Users who care can use -compileflags for this.
Also, fix make clean call and a few other tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84496
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:44 +0000 (13:20 +0000)]
NNT: Fix refactoro, I dropped the list of all (llvm-test) tests. I'm sure it was named dejagnu_test_list for a good reason.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84495
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:38 +0000 (13:20 +0000)]
NNT: Lift conditional logic out of test steps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84494
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:31 +0000 (13:20 +0000)]
NNT: Now that build & test steps are factored out, coalesce all the logic together.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84493
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:25 +0000 (13:20 +0000)]
NNT: Sink code for running nightly test into subroutine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84492
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:19 +0000 (13:20 +0000)]
NNT: Tweaks and simplifications.
- Split out configure log.
- Kill off GetRegexNum.
- Fix GetRegex to not return previous match on failure.
- Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84491
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:13 +0000 (13:20 +0000)]
NNT: Move build code into subroutine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84490
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:06 +0000 (13:20 +0000)]
NNT: Move source checkout code into subroutine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84489
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:20:00 +0000 (13:20 +0000)]
NNT: Remove .{o,a} size info, this is better tracked elsewhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84488
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 13:19:53 +0000 (13:19 +0000)]
NNT: Remove code to track build warnings, the buildbots cover this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84487
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Mon, 19 Oct 2009 11:00:58 +0000 (11:00 +0000)]
Fix PR5247, "lock addq" pattern (and other atomics), it DOES modify EFLAGS.
LLC was scheduling compares before the adds causing wrong branches to be taken
in programs, resulting in misoptimized code wherever atomic adds where used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84485
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:19:32 +0000 (09:19 +0000)]
Also check for __POWERPC__ when skipping these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84482
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:19:19 +0000 (09:19 +0000)]
NNT: Remove hard coded BuildDir and WebDir, users should have to specify these.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84481
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:19:09 +0000 (09:19 +0000)]
NNT: Remove "CVS Stats", this isn't particularly useful and can be better done by the server or user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84480
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:18:54 +0000 (09:18 +0000)]
NNT: Remove now-unused -cvstag argument and CVSROOT code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84479
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:18:46 +0000 (09:18 +0000)]
NNT: Remove -usecvs option, this is very old.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84478
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:18:37 +0000 (09:18 +0000)]
NNT: Remove -debug argument, it is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84477
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 09:18:24 +0000 (09:18 +0000)]
Regroup NewNightlyTest.pl options
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84476
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 07:10:59 +0000 (07:10 +0000)]
various cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84471
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 05:51:03 +0000 (05:51 +0000)]
simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84465
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 05:34:14 +0000 (05:34 +0000)]
eliminate md_on_instruction.ll, md_on_instruction2.ll is a superset of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84464
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Oct 2009 05:31:10 +0000 (05:31 +0000)]
clean up after metadata changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84463
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 03:54:21 +0000 (03:54 +0000)]
lit: When running Tcl scripts via shell, try harder to find 'bash', but fall
back to running them internally if that fails. PR5240.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84462
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 03:54:13 +0000 (03:54 +0000)]
Add link to 'lit' from CommandGuide.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84461
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 19 Oct 2009 03:53:55 +0000 (03:53 +0000)]
Teach lit that the .c files in 'test/CodeGen/CellSPU/useful-harnesses' aren't tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84460
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Mon, 19 Oct 2009 02:17:23 +0000 (02:17 +0000)]
Add support for matching shuffle patterns with palignr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84459
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sun, 18 Oct 2009 22:51:30 +0000 (22:51 +0000)]
Refactoring, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84450
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 18 Oct 2009 19:58:47 +0000 (19:58 +0000)]
Spill slots cannot alias.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84432
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 18 Oct 2009 19:57:27 +0000 (19:57 +0000)]
Turn on post-alloc scheduling for x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84431
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 18 Oct 2009 18:31:31 +0000 (18:31 +0000)]
Oops. I forgot to change the tests first. Disable post-alloc scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84425
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 18 Oct 2009 18:16:27 +0000 (18:16 +0000)]
-Revert parts of 84326 and 84411. Distinquishing between fixed and non-fixed
stack slots and giving them different PseudoSourceValue's did not fix the
problem of post-alloc scheduling miscompiling llvm itself.
- Apply Dan's conservative workaround by assuming any non fixed stack slots can
alias other memory locations. This means a load from spill slot #1 cannot
move above a store of spill slot #2.
- Enable post-alloc scheduling for x86 at optimization leverl Default and above.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84424
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 18 Oct 2009 06:27:36 +0000 (06:27 +0000)]
Only fixed stack objects and spill slots should be get FixedStack PseudoSourceValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84411
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Oct 2009 05:27:44 +0000 (05:27 +0000)]
remove some nonascii weird stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84410
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Oct 2009 05:20:17 +0000 (05:20 +0000)]
remove a now-pointless regtest
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84409
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Oct 2009 05:09:15 +0000 (05:09 +0000)]
add some fixme's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84408
91177308-0d34-0410-b5e6-
96231b3b80d8