OSDN Git Service
Viktor Kutuzov [Tue, 17 Nov 2009 18:48:27 +0000 (18:48 +0000)]
Added getArchNameForAssembler method to the Triple class for which returns OS and Vendor independent target assembler arch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89122
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 17 Nov 2009 18:30:09 +0000 (18:30 +0000)]
Remove a special case for tail merging that seems to be both broken and
unnecessary. It is broken because the "isIdenticalTo" check should be
negated. If that is fixed, this code causes the CodeGen/X86/tail-opts.ll
test to fail, in the dont_merge_oddly function. And, I confirmed that the
regression is real -- the generated code is worse. As far as I can tell,
that tail-opts.ll test is checking for what this code is supposed to handle
and we're doing the right thing anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89121
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 17 Nov 2009 18:10:11 +0000 (18:10 +0000)]
Generalize OptimizeLoopTermCond to optimize more loop terminating icmp to use postinc iv.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89116
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 17 Nov 2009 18:04:15 +0000 (18:04 +0000)]
Set MadeChange instead of MadeChangeThisIteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89114
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 17 Nov 2009 17:57:04 +0000 (17:57 +0000)]
Revert CPU detection code to return "generic" instead of an empty string in case
of failure. The x86 target didn't like empty cpu names and broke x86 tests on
non-x86 buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89111
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 17 Nov 2009 17:53:56 +0000 (17:53 +0000)]
Remove trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89110
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 17 Nov 2009 17:40:31 +0000 (17:40 +0000)]
Update a comment, now that tail duplication happens after other branch
folding optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89109
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 17 Nov 2009 17:17:50 +0000 (17:17 +0000)]
Set Inst{15-12} (Rd/Rt) to 0b1111 (PC) for BR_JTadd, BR_JTr, and BR_JTm to
distinguish between them and the more generic instructions (add, mov, and ldr).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89108
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 17 Nov 2009 17:06:18 +0000 (17:06 +0000)]
Perform tail duplication only once, after tail merging is complete.
It was too difficult to keep the heuristics for merging and duplication
consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89105
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 17 Nov 2009 15:35:39 +0000 (15:35 +0000)]
add Case() with 5 args
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89099
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Tue, 17 Nov 2009 13:13:59 +0000 (13:13 +0000)]
Fix HTML formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89093
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 17 Nov 2009 10:54:25 +0000 (10:54 +0000)]
1. Allow SCCIterator to work with GraphT types that are constant.
2. Allow SCCIterator to work with inverse graphs.
3. Fix an incorrect comment in GraphTraits.h (the type in the comment
was given as GraphType* when it is actually const GraphType &).
Patch by Patrick Alexander Simmons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89091
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 17 Nov 2009 10:20:22 +0000 (10:20 +0000)]
Make bugpoint pass -load arguments to LLI. This lets one use bugpoint with
programs that depend on native shared libraries. Patch by Timo Lindfors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89087
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 17 Nov 2009 09:55:52 +0000 (09:55 +0000)]
Revert 89021. It's miscompiling llvm-gcc driver driver at -O0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89082
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 17 Nov 2009 09:51:18 +0000 (09:51 +0000)]
Re-apply 89011. It's not to be blamed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89081
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 17 Nov 2009 09:29:59 +0000 (09:29 +0000)]
"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
- I plan on fixing/workarounding this, but until then I'd like the bots to stay
green.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89077
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 17 Nov 2009 09:20:28 +0000 (09:20 +0000)]
Revert 89011. Buildbot thinks it might be breaking stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89076
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 17 Nov 2009 09:17:08 +0000 (09:17 +0000)]
Remove VISIBILITY_HIDDEN from the classes in this directory. Fixes bug 5507.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89075
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 17 Nov 2009 08:34:52 +0000 (08:34 +0000)]
Following a suggestion of Daniel Dunbar, stop people passing the name
as the isSigned bool to CreateIntCast by having this resolve to a call
to a private method, rather than by using a gcc attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89067
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 17 Nov 2009 08:11:44 +0000 (08:11 +0000)]
Revert r88939.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89066
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 17 Nov 2009 07:52:09 +0000 (07:52 +0000)]
Fail less mysteriously; inform the user that their LLVM was not built with
libffi support and that the interpreter can't call external functions without
it. Patch by Timo Juhani Lindfors! Fixes PR5466.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89062
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Tue, 17 Nov 2009 07:19:50 +0000 (07:19 +0000)]
Fixed call to wrong constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89059
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 17 Nov 2009 07:06:10 +0000 (07:06 +0000)]
Fix a race condition in the Timer class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89056
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 17 Nov 2009 01:23:53 +0000 (01:23 +0000)]
Refactor the code that creates the "dot-label" difference. This may be used in
more than one place. No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89024
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 17 Nov 2009 01:21:04 +0000 (01:21 +0000)]
When moving a block for table jumps, make sure the prior block terminator
is analyzable so it can be updated. If it's not, be safe and don't move the
block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89022
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 17 Nov 2009 01:07:22 +0000 (01:07 +0000)]
Enable -split-phi-edges by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89021
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 17 Nov 2009 00:55:55 +0000 (00:55 +0000)]
MOV64rm should be marked isReMaterializable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89019
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 17 Nov 2009 00:47:23 +0000 (00:47 +0000)]
Remove the optimizations that convert BRCOND and BR_CC into
unconditional branches or fallthroghes. Instcombine/SimplifyCFG
should be simplifying branches with known conditions.
This fixes some problems caused by these transformations not
updating the MachineBasicBlock CFG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89017
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 17 Nov 2009 00:47:06 +0000 (00:47 +0000)]
Remove debug info attached with an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89016
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Tue, 17 Nov 2009 00:43:13 +0000 (00:43 +0000)]
In GlobalVariable::setInitializer, assert that the initializer has the
right type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89014
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 17 Nov 2009 00:23:22 +0000 (00:23 +0000)]
A few more instructions that should be marked re-materializable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89011
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 17 Nov 2009 00:20:26 +0000 (00:20 +0000)]
Convert to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89007
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 17 Nov 2009 00:03:38 +0000 (00:03 +0000)]
Convert to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89002
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 17 Nov 2009 00:00:33 +0000 (00:00 +0000)]
Cleanup. Missed removing these when converting. Oops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89001
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 16 Nov 2009 23:57:56 +0000 (23:57 +0000)]
Set Rm bits of BX_RET to 0b1110 (R14); and set condition code bits of BRIND to
0b1110 (ALways). This is so that the disassembler decoder can distinguish among
BX_RET, BRIND, and BXr9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89000
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 23:49:55 +0000 (23:49 +0000)]
Fix this test - there don't appear to be any actual Reload Reuses
in this testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88998
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 23:43:42 +0000 (23:43 +0000)]
Revert r87049, which was the workaround for the regression triggered
by the recent FixedStackPseudoSourceValue-related changes, now that
the specific bug that affected it is fixed, in r88954.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88997
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 16 Nov 2009 23:32:30 +0000 (23:32 +0000)]
Revert the test from r88984. It relies on being able to mmap 16GB of
address space (though it only uses a small fraction of that), and the
buildbots disallow that.
Also add a comment to the Makefile's ulimit line warning future
developers that changing it won't work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88994
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 23:19:29 +0000 (23:19 +0000)]
Convert to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88991
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 22:49:38 +0000 (22:49 +0000)]
Initialize the new AsmPrinterFlags field to 0, fixing uses of
uninitialized memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88985
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 16 Nov 2009 22:41:33 +0000 (22:41 +0000)]
Make X86-64 in the Large model always emit 64-bit calls.
The large code model is documented at
http://www.x86-64.org/documentation/abi.pdf and says that calls should
assume their target doesn't live within the 32-bit pc-relative offset
that fits in the call instruction.
To do this, we turn off the global-address->target-global-address
conversion in X86TargetLowering::LowerCall(). The first attempt at
this broke the lazy JIT because it can separate the movabs(imm->reg)
from the actual call instruction. The lazy JIT receives the address of
the movabs as a relocation and needs to record the return address from
the call; and then when that call happens, it needs to patch the
movabs with the newly-compiled target. We could thread the call
instruction into the relocation and record the movabs<->call mapping
explicitly, but that seems to require at least as much new
complication in the code generator as this change.
To fix this, we make lazy functions _always_ go through a call
stub. You'd think we'd only have to force lazy calls through a stub on
difficult platforms, but that turns out to break indirect calls
through a function pointer. The right fix for that is to distinguish
between calls and address-of operations on uncompiled functions, but
that's complex enough to leave for someone else to do.
Another attempt at this defined a new CALL64i pseudo-instruction,
which expanded to a 2-instruction sequence in the assembly output and
was special-cased in the X86CodeEmitter's emitInstruction()
function. That broke indirect calls in the same way as above.
This patch also removes a hack forcing Darwin to the small code model.
Without far-call-stubs, the small code model requires things of the
JITMemoryManager that the DefaultJITMemoryManager can't provide.
Thanks to echristo for lots of testing!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88984
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 16 Nov 2009 22:38:00 +0000 (22:38 +0000)]
Don't build examples by default, use BUILD_EXAMPLES=1 to build them. The only utility of this is testing that we keep the examples up to date, I will just make the buildbots run with this flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88979
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 16 Nov 2009 22:37:52 +0000 (22:37 +0000)]
Add "Unoptimized" build (NO_DEBUG_SYMBOLS=1 ENABLE_OPTIMIZED=1), for reducing
disk space, and increasing battery lifetime. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88978
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 16 Nov 2009 22:34:32 +0000 (22:34 +0000)]
Fix unused variables warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88977
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 16 Nov 2009 21:56:03 +0000 (21:56 +0000)]
- Check memoperand alignment instead of checking stack alignment. Most load / store folding instructions are not referencing spill stack slots.
- Mark MOVUPSrm re-materializable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88974
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 16 Nov 2009 21:53:40 +0000 (21:53 +0000)]
Revert r88939.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88973
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Mon, 16 Nov 2009 21:52:23 +0000 (21:52 +0000)]
Fix an expensive-checks error.
The Mask and LHSMask may not be of the same size, so don't do the
transformation if they're different.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88972
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 21:13:22 +0000 (21:13 +0000)]
Make the pass class name more explicit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88964
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 21:03:58 +0000 (21:03 +0000)]
make pass name a bit more clear
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88961
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 20:45:50 +0000 (20:45 +0000)]
Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88959
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 20:41:12 +0000 (20:41 +0000)]
Remove an unnecessary #include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88957
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 20:40:47 +0000 (20:40 +0000)]
Sink a #include <map> to where it's actually needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88956
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 20:40:06 +0000 (20:40 +0000)]
Make PseudoSourceValue's classof recognize
FixedStackPseudoSourceValueVal, to respect this isa relationship.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88954
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 16 Nov 2009 20:35:59 +0000 (20:35 +0000)]
Fix a typo in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88953
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 20:04:15 +0000 (20:04 +0000)]
Convert to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88947
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Mon, 16 Nov 2009 20:03:13 +0000 (20:03 +0000)]
Added a testcase for PR5495.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88946
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 16 Nov 2009 19:46:55 +0000 (19:46 +0000)]
Add configure options for specifying where to look for libstdc++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88943
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 19:46:46 +0000 (19:46 +0000)]
Convert to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88942
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 16 Nov 2009 19:33:27 +0000 (19:33 +0000)]
Fix a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88940
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 16 Nov 2009 19:20:48 +0000 (19:20 +0000)]
Add VISIBILITY_HIDDEN marker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88939
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 18:58:52 +0000 (18:58 +0000)]
Simplify thumb2 jump table adjustments. Remove unnecessary calculation and
usage of block sizes and offsets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88935
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 18:55:47 +0000 (18:55 +0000)]
clarify comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88933
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 16 Nov 2009 18:54:08 +0000 (18:54 +0000)]
Fix some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88932
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 16 Nov 2009 18:08:46 +0000 (18:08 +0000)]
Whitespace: be consistent with pointer syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88929
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 16 Nov 2009 17:56:13 +0000 (17:56 +0000)]
Clean up whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88927
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 17:24:45 +0000 (17:24 +0000)]
tbb opt off by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88921
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 17:17:48 +0000 (17:17 +0000)]
back off for a bit. tracking down weirdness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88919
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 16 Nov 2009 17:10:56 +0000 (17:10 +0000)]
Analyze has to be before checking the condition, obviously. Properly construct an iterator for prior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88917
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 16 Nov 2009 16:56:48 +0000 (16:56 +0000)]
Make ERROR_IF_USED macro work with GCC <= 4.2, Apple GCCs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88916
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 16 Nov 2009 15:28:17 +0000 (15:28 +0000)]
Make sure that if anyone passes a name by accident for the isSigned
parameter of CreateIntCast then they get an error from the compiler
(or from the linker with a non-gcc compiler). Another possibility
is to flip the order of the DestTy and isSigned parameters, since you
should then get a compiler warning if you try to use a char* for a
Type*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88913
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Mon, 16 Nov 2009 15:12:23 +0000 (15:12 +0000)]
Support spill comments.
Have the asm printer emit a comment if an instruction is a spill or
reload and have the spiller mark copies it introdues so the asm printer
can also annotate those.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88911
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 16 Nov 2009 13:15:28 +0000 (13:15 +0000)]
BuildIntCast takes an additional parameter, isSigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88910
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 16 Nov 2009 12:32:28 +0000 (12:32 +0000)]
CreateIntCast takes an "isSigned" parameter. Pass "true" for it, rather than
a name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88908
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 16 Nov 2009 07:10:36 +0000 (07:10 +0000)]
Special case FixedStackPseudoSourceValueVal as well. Do we really need to differentiate PseudoSourceValueVal from FixedStackPseudoSourceValueVal at this level?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88902
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 16 Nov 2009 06:31:49 +0000 (06:31 +0000)]
Check if subreg index is zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88899
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 16 Nov 2009 05:52:06 +0000 (05:52 +0000)]
For some targets, a copy can use a register multiple times, e.g. ppc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88895
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 16 Nov 2009 05:44:04 +0000 (05:44 +0000)]
xfail for now. It has been failing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88892
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 16 Nov 2009 04:35:29 +0000 (04:35 +0000)]
Disable ldc1/sdc1 instructions for mips1 targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88887
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 16 Nov 2009 04:33:42 +0000 (04:33 +0000)]
- Fix a small bug while handling target constant pools (one param was missing).
- Add a smarter constant pool loading, instead of:
lui $2, %hi($CPI1_0)
addiu $2, $2, %lo($CPI1_0)
lwc1 $f0, 0($2)
Generate:
lui $2, %hi($CPI1_0)
lwc1 $f0, %lo($CPI1_0)($2)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88886
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Nov 2009 03:51:42 +0000 (03:51 +0000)]
typo spotted by duncan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88884
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Mon, 16 Nov 2009 02:07:31 +0000 (02:07 +0000)]
Fixes the bug exposed by Anton's test case in PR 5495:
Make sure when ProcessImplicitDefs removes a copy which kills its source reg that it
removes the copy from said reg's Kills list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88881
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Mon, 16 Nov 2009 02:00:09 +0000 (02:00 +0000)]
Fix for the original bug in PR5495 - Look at uses as well as defs when determining the PHI-copy insert point.
- Patch by Andrew Canis!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88880
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Sun, 15 Nov 2009 21:45:34 +0000 (21:45 +0000)]
Detect need for autoalignment of the stack earlier to catch spills more
conservatively. eliminateFrameIndex() machinery adjust to handle addr mode
6 (vld1/vst1) used for spills. Fix tests to expect aligned Q-reg spilling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88874
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Sun, 15 Nov 2009 21:05:07 +0000 (21:05 +0000)]
set the def of the VLD1q64 properly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88873
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 20:03:53 +0000 (20:03 +0000)]
disable copying, enforce some invariants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88870
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 20:02:12 +0000 (20:02 +0000)]
teach LVI to infer edge information from switch instructions.
This allows JT to eliminate a ton of infeasible edges when
handling code like the templates in PatternMatch.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88869
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 20:01:24 +0000 (20:01 +0000)]
fix a logic error that would cause LVI-JT to miscompile
some conditionals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88868
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 20:00:52 +0000 (20:00 +0000)]
implement the first stab at caching queries. This isn't correct
(because the invalidation logic is missing) but LVI isn't enabled
by default anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88867
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 19:59:49 +0000 (19:59 +0000)]
refactor a bunch of code forming the new LazyValueInfoCache
and LVIQuery classes, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88866
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 19:58:31 +0000 (19:58 +0000)]
make PRE of loads preserve the alignment of the moved load instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88865
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 19:57:43 +0000 (19:57 +0000)]
fix a bug handling 'not x' when x is undef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88864
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 19:56:28 +0000 (19:56 +0000)]
mark getIntrinsicID() 'readonly'. This allows various classof methods
(like DbgDeclareInst's) to shrink substantially. It sucks that we have
to pull Compiler.h into such a public header, but at least Compiler.h
doesn't pull anything else in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88863
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 19:54:31 +0000 (19:54 +0000)]
add attributes for readnone/readonly functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88862
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Nov 2009 19:52:43 +0000 (19:52 +0000)]
add a version of array_pod_sort that takes a custom comparator function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88861
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 15 Nov 2009 17:51:23 +0000 (17:51 +0000)]
Add a complex missed optimization opportunity I came across while investigating
bug 5438.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88855
91177308-0d34-0410-b5e6-
96231b3b80d8
Edward O'Callaghan [Sun, 15 Nov 2009 10:18:17 +0000 (10:18 +0000)]
Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88849
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 15 Nov 2009 08:10:29 +0000 (08:10 +0000)]
lit: Factor a new OneCommandPerFileTest out of SyntaxCheckTest.
- Used for running a single fixed command on a directory of files, with the
option of deriving a temporary input file from the test source.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88844
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 15 Nov 2009 07:47:32 +0000 (07:47 +0000)]
Revert r88830 and r88831 which appear to have caused a selfhost buildbot some
grief. I suspect this patch merely exposed a bug else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88841
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 15 Nov 2009 07:22:58 +0000 (07:22 +0000)]
Remove duplicate implementation of excludes functionality, and support excluding
dirnames.
Also, add support for the 'unsupported' config property.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88838
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 15 Nov 2009 06:16:57 +0000 (06:16 +0000)]
Correct typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88831
91177308-0d34-0410-b5e6-
96231b3b80d8