oota-llvm.git
14 years agoOnly include in the callee saved regs the sub registers to avoid
Bruno Cardoso Lopes [Wed, 25 Nov 2009 00:47:43 +0000 (00:47 +0000)]
Only include in the callee saved regs the sub registers to avoid
unnecessary save/restore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89823 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd proper emission of load/store double to stack slots for mips1 targets!
Bruno Cardoso Lopes [Wed, 25 Nov 2009 00:36:00 +0000 (00:36 +0000)]
Add proper emission of load/store double to stack slots for mips1 targets!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89821 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r89803.
Devang Patel [Wed, 25 Nov 2009 00:31:13 +0000 (00:31 +0000)]
Revert r89803.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89819 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRefactor target hook for tail duplication as requested by Chris.
Bob Wilson [Tue, 24 Nov 2009 23:35:49 +0000 (23:35 +0000)]
Refactor target hook for tail duplication as requested by Chris.
Make tail duplication of indirect branches much more aggressive (for targets
that indicate that it is profitable), based on further experience with
this transformation.  I compiled 3 large applications with and without
this more aggressive tail duplication and measured minimal changes in code
size.  ("size" on Darwin seems to round the text size up to the nearest
page boundary, so I can only say that any code size increase was less than
one 4k page.) Radar 7421267.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89814 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDo not store R31 into the caller's link area on PPC.
Dale Johannesen [Tue, 24 Nov 2009 22:59:02 +0000 (22:59 +0000)]
Do not store R31 into the caller's link area on PPC.
This violates the ABI (that area is "reserved"), and
while it is safe if all code is generated with current
compilers, there is some very old code around that uses
that slot for something else, and breaks if it is stored
into.  Adjust testcases looking for current behavior.
I've verified that the stack frame size is right in all
testcases, whether it changed or not.  7311323.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89811 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEnable debug info for ppc-darwin.
Devang Patel [Tue, 24 Nov 2009 21:38:54 +0000 (21:38 +0000)]
Enable debug info for ppc-darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89803 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUse StringRef instead of std::string in DIEString.
Devang Patel [Tue, 24 Nov 2009 19:42:17 +0000 (19:42 +0000)]
Use StringRef instead of std::string in DIEString.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89793 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove DebugLabelFolder pass. It is not used by dwarf writer anymore.
Devang Patel [Tue, 24 Nov 2009 19:37:07 +0000 (19:37 +0000)]
Remove DebugLabelFolder pass. It is not used by dwarf writer anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89790 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSwith to pubtypes section before emitting pub types.
Devang Patel [Tue, 24 Nov 2009 19:18:41 +0000 (19:18 +0000)]
Swith to pubtypes section before emitting pub types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89787 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove bogus error handling code.
Daniel Dunbar [Tue, 24 Nov 2009 19:03:33 +0000 (19:03 +0000)]
Remove bogus error handling code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89786 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix comments as pre-post review for rev.89765.
Edward O'Callaghan [Tue, 24 Nov 2009 16:29:23 +0000 (16:29 +0000)]
Fix comments as pre-post review for rev.89765.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89770 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoProvide Path::isSpecialFile interface for PR5568.
Edward O'Callaghan [Tue, 24 Nov 2009 15:19:10 +0000 (15:19 +0000)]
Provide Path::isSpecialFile interface for PR5568.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89765 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix for PR5373, Credit to Jakub Staszak.
Edward O'Callaghan [Tue, 24 Nov 2009 11:51:52 +0000 (11:51 +0000)]
Fix for PR5373, Credit to Jakub Staszak.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89758 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEnable predication of NEON instructions in Thumb2 mode.
Evan Cheng [Tue, 24 Nov 2009 08:06:15 +0000 (08:06 +0000)]
Enable predication of NEON instructions in Thumb2 mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89748 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoOops. Re-disable JITTest.NoStubs on ARM and PPC since they still use stubs to
Jeffrey Yasskin [Tue, 24 Nov 2009 02:11:14 +0000 (02:11 +0000)]
Oops. Re-disable JITTest.NoStubs on ARM and PPC since they still use stubs to
make far calls work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89733 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDelete some dead and non-obvious code.
Dan Gohman [Tue, 24 Nov 2009 01:48:15 +0000 (01:48 +0000)]
Delete some dead and non-obvious code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89729 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEmit pubtypes.
Devang Patel [Tue, 24 Nov 2009 01:14:22 +0000 (01:14 +0000)]
Emit pubtypes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89725 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMake capitalization of names starting "is" more consistent.
Dale Johannesen [Tue, 24 Nov 2009 01:09:07 +0000 (01:09 +0000)]
Make capitalization of names starting "is" more consistent.
No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89724 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoData type suffix must come after predicate.
Evan Cheng [Tue, 24 Nov 2009 01:05:23 +0000 (01:05 +0000)]
Data type suffix must come after predicate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89723 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago<rdar://problem/6721894>. Allow multiple registers to be renamed together (super...
David Goodwin [Tue, 24 Nov 2009 00:59:08 +0000 (00:59 +0000)]
<rdar://problem/6721894>. Allow multiple registers to be renamed together (super and sub) if necessary to break an anti-dependence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89722 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMaterialize global addresses via movt/movw pair, this is always better
Anton Korobeynikov [Tue, 24 Nov 2009 00:44:37 +0000 (00:44 +0000)]
Materialize global addresses via movt/movw pair, this is always better
than doing the same via constpool:
1. Load from constpool costs 3 cycles on A9, movt/movw pair - just 2.
2. Load from constpool might stall up to 300 cycles due to cache miss.
3. Movt/movw does not use load/store unit.
4. Less constpool entries => better compiler performance.

This is only enabled on ELF systems, since darwin does not have needed
relocations (yet).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89720 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago80 column violations
Jim Grosbach [Tue, 24 Nov 2009 00:20:27 +0000 (00:20 +0000)]
80 column violations

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89718 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago* Move stub allocation inside the JITEmitter, instead of exposing a
Jeffrey Yasskin [Mon, 23 Nov 2009 23:35:19 +0000 (23:35 +0000)]
* Move stub allocation inside the JITEmitter, instead of exposing a
way for each TargetJITInfo subclass to allocate its own stubs. This
means stubs aren't as exactly-sized anymore, but it lets us get rid of
TargetJITInfo::emitFunctionStubAtAddr(), which lets ARM and PPC
support the eager JIT, fixing http://llvm.org/PR4816.

* Rename the JITEmitter's stub creation functions to describe the kind
of stub they create. So far, all of them create lazy-compilation
stubs, but they sometimes get used when far-call stubs are needed.
Fixing http://llvm.org/PR5201 will involve fixing this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89715 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoenable iv-users simplification by default
Jim Grosbach [Mon, 23 Nov 2009 23:25:54 +0000 (23:25 +0000)]
enable iv-users simplification by default

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89713 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove ISD::DEBUG_LOC and ISD::DBG_LABEL, which are no longer used.
Dan Gohman [Mon, 23 Nov 2009 23:20:51 +0000 (23:20 +0000)]
Remove ISD::DEBUG_LOC and ISD::DBG_LABEL, which are no longer used.
Note that "hasDotLocAndDotFile"-style debug info was already broken;
people wanting this functionality should implement it in the
AsmPrinter/DwarfWriter code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89711 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAllow more than one stub to be being generated at the same time.
Jeffrey Yasskin [Mon, 23 Nov 2009 22:49:00 +0000 (22:49 +0000)]
Allow more than one stub to be being generated at the same time.

It's probably better in the long run to replace the
indirect-GlobalVariable system. That'll be done after a subsequent
patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89708 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMassive refactoring of NEON instructions. Separate opcode from data size specifier...
Evan Cheng [Mon, 23 Nov 2009 21:57:23 +0000 (21:57 +0000)]
Massive refactoring of NEON instructions. Separate opcode from data size specifier suffix, move \t up stream to instruction format, and fix more 80 column violations.
This fixes the NEON asm printing so the "predicate" field is printed between the opcode and the data type suffix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89706 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSimplify this code.
Dan Gohman [Mon, 23 Nov 2009 21:30:55 +0000 (21:30 +0000)]
Simplify this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89702 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPrint the debug info line and column in MachineInstr::print even when there's
Dan Gohman [Mon, 23 Nov 2009 21:29:08 +0000 (21:29 +0000)]
Print the debug info line and column in MachineInstr::print even when there's
no filename. This situation is apparently fairly common right now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89701 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomove fconst[sd] to UAL. <rdar://7414913>
Jim Grosbach [Mon, 23 Nov 2009 21:08:25 +0000 (21:08 +0000)]
move fconst[sd] to UAL. <rdar://7414913>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89700 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPartially revert r84730 by removing N2VDup from ARMInstrFormats.td and modifying
Johnny Chen [Mon, 23 Nov 2009 21:00:43 +0000 (21:00 +0000)]
Partially revert r84730 by removing N2VDup from ARMInstrFormats.td and modifying
VDUPLND and VDUPLNQ to derive from N2V instead of N2VDup.  VDUPLND and VDUPLNQ
now expect op19_18 and op17_16 as the first two args.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89699 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoupdate test for 89694
Jim Grosbach [Mon, 23 Nov 2009 20:39:53 +0000 (20:39 +0000)]
update test for 89694

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89695 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofold immediate of a + Const into the user as a subtract if it can fit as a negated...
Jim Grosbach [Mon, 23 Nov 2009 20:35:53 +0000 (20:35 +0000)]
fold immediate of a + Const into the user as a subtract if it can fit as a negated two-part immediate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89694 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r84572 by removing N3VImm from ARMInstrFormats.td now that we can specify
Johnny Chen [Mon, 23 Nov 2009 20:09:13 +0000 (20:09 +0000)]
Revert r84572 by removing N3VImm from ARMInstrFormats.td now that we can specify
{?,?,?,?} as op11_8 for VEXTd and VEXTq.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89693 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd CreateLocation varinat that accepts MDNode (with a default value).
Devang Patel [Mon, 23 Nov 2009 19:11:20 +0000 (19:11 +0000)]
Add CreateLocation varinat that accepts MDNode (with a default value).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89689 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r89487.
Devang Patel [Mon, 23 Nov 2009 18:43:37 +0000 (18:43 +0000)]
Revert r89487.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89686 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPartially revert r89377 by removing NLdStLN class definition from
Johnny Chen [Mon, 23 Nov 2009 18:16:16 +0000 (18:16 +0000)]
Partially revert r89377 by removing NLdStLN class definition from
ARMInstrFormats.td and fixing VLD[234]LN* and VST[234]LN* to derive from NLdSt
instead of NLdStLN.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89684 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove CopyCatchInfo into FunctionLoweringInfo.cpp too, for consistency.
Dan Gohman [Mon, 23 Nov 2009 18:12:11 +0000 (18:12 +0000)]
Move CopyCatchInfo into FunctionLoweringInfo.cpp too, for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89683 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRename SelectionDAGLowering to SelectionDAGBuilder, and rename
Dan Gohman [Mon, 23 Nov 2009 18:04:58 +0000 (18:04 +0000)]
Rename SelectionDAGLowering to SelectionDAGBuilder, and rename
SelectionDAGBuild.cpp to SelectionDAGBuilder.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89681 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMake it clear that the index bit(s) of Vector Get Lane and Vector Set Lane
Johnny Chen [Mon, 23 Nov 2009 17:48:17 +0000 (17:48 +0000)]
Make it clear that the index bit(s) of Vector Get Lane and Vector Set Lane
should be left unspecified now that Bob Wilson has fixed pr5470.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89676 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove RegsForValue to an anonymous namespace, since it is only used
Dan Gohman [Mon, 23 Nov 2009 17:46:23 +0000 (17:46 +0000)]
Move RegsForValue to an anonymous namespace, since it is only used
in this file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89675 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove some more code out of SelectionDAGBuild.cpp and into
Dan Gohman [Mon, 23 Nov 2009 17:42:46 +0000 (17:42 +0000)]
Move some more code out of SelectionDAGBuild.cpp and into
FunctionLoweringInfo.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89674 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMinor itinerary fixes for FP instructions.
David Goodwin [Mon, 23 Nov 2009 17:34:12 +0000 (17:34 +0000)]
Minor itinerary fixes for FP instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89672 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate CMake file.
Ted Kremenek [Mon, 23 Nov 2009 17:26:04 +0000 (17:26 +0000)]
Update CMake file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89671 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove the FunctionLoweringInfo class and some related utility functions out
Dan Gohman [Mon, 23 Nov 2009 17:16:22 +0000 (17:16 +0000)]
Move the FunctionLoweringInfo class and some related utility functions out
of SelectionDAGBuild.h/cpp into its own files, to help separate
general lowering logic from SelectionDAG-specific lowering logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89667 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix comment, thanks all :)
Chris Lattner [Mon, 23 Nov 2009 17:07:35 +0000 (17:07 +0000)]
fix comment, thanks all :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89666 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agouse the new isNoAlias method to simplify some code, only do an escaping check if
Chris Lattner [Mon, 23 Nov 2009 16:46:41 +0000 (16:46 +0000)]
use the new isNoAlias method to simplify some code, only do an escaping check if
we have a non-constant pointer.  Constant pointers can't be local.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89665 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agowhitespace cleanup, tidying
Chris Lattner [Mon, 23 Nov 2009 16:45:27 +0000 (16:45 +0000)]
whitespace cleanup, tidying

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89664 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agospeed up BasicAA a bit by implementing a long-standing TODO.
Chris Lattner [Mon, 23 Nov 2009 16:44:43 +0000 (16:44 +0000)]
speed up BasicAA a bit by implementing a long-standing TODO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89663 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoadd a helper
Chris Lattner [Mon, 23 Nov 2009 16:38:54 +0000 (16:38 +0000)]
add a helper

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89662 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove FunctionPassManagerImpl's dumpArguments and dumpPasses calls
Dan Gohman [Mon, 23 Nov 2009 16:24:18 +0000 (16:24 +0000)]
Move FunctionPassManagerImpl's dumpArguments and dumpPasses calls
out of its run function and into its doInitialization method, so
that it does the dump once instead of once per function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89660 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMake ConstantFoldConstantExpression recursively visit the entire
Dan Gohman [Mon, 23 Nov 2009 16:22:21 +0000 (16:22 +0000)]
Make ConstantFoldConstantExpression recursively visit the entire
ConstantExpr, not just the top-level operator. This allows it to
fold many more constants.

Also, make GlobalOpt call ConstantFoldConstantExpression on
GlobalVariable initializers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89659 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix a use of an invalidated iterator in the case where there are multiple
Dan Gohman [Mon, 23 Nov 2009 16:13:39 +0000 (16:13 +0000)]
Fix a use of an invalidated iterator in the case where there are multiple
adjacent uses of a dead basic block from the same user. This fixes PR5596.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89658 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoI forgot to update the prototype for LLVMBuildIntCast when correcting
Duncan Sands [Mon, 23 Nov 2009 10:49:03 +0000 (10:49 +0000)]
I forgot to update the prototype for LLVMBuildIntCast when correcting
the body to not pass the name for the isSigned parameter.  However it
seems that changing prototypes is a big-no-no, so here I revert the
previous change and pass "true" for isSigned, meaning this always does
a signed cast, which was the previous behaviour assuming the name was
not NULL!  Some other C function needs to be introduced for the general
case of signed or unsigned casts.  This hopefully unbreaks the ocaml
binding.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89648 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoStart catching LLVMContext misuse in the verifier.
Nick Lewycky [Mon, 23 Nov 2009 04:52:00 +0000 (04:52 +0000)]
Start catching LLVMContext misuse in the verifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89646 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoPull LLVMContext out of PromoteMemToReg.
Nick Lewycky [Mon, 23 Nov 2009 03:50:44 +0000 (03:50 +0000)]
Pull LLVMContext out of PromoteMemToReg.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89645 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove LLVMContext and its include.
Nick Lewycky [Mon, 23 Nov 2009 03:34:29 +0000 (03:34 +0000)]
Remove LLVMContext and its include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89644 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove unused LLVMContext.
Nick Lewycky [Mon, 23 Nov 2009 03:29:18 +0000 (03:29 +0000)]
Remove unused LLVMContext.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89642 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove dead LLVMContext argument.
Nick Lewycky [Mon, 23 Nov 2009 03:26:09 +0000 (03:26 +0000)]
Remove dead LLVMContext argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89641 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoReapply r88830 with a bugfix: this transform only applies to icmp eq/ne. This
Nick Lewycky [Mon, 23 Nov 2009 03:17:33 +0000 (03:17 +0000)]
Reapply r88830 with a bugfix: this transform only applies to icmp eq/ne. This
fixes part of PR5438.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89639 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCMake: Updated library dependencies.
Oscar Fuentes [Mon, 23 Nov 2009 00:40:39 +0000 (00:40 +0000)]
CMake: Updated library dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89637 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCMake: Do not try to install a target before it is defined.
Oscar Fuentes [Mon, 23 Nov 2009 00:32:42 +0000 (00:32 +0000)]
CMake: Do not try to install a target before it is defined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89636 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCMake: generate targets for tools and examples even when
Oscar Fuentes [Mon, 23 Nov 2009 00:21:43 +0000 (00:21 +0000)]
CMake: generate targets for tools and examples even when
LLVM_BUILD_TOOLS or LLVM_BUILD_EXAMPLES are OFF.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89635 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFileCheck, PR5239: Try to find the intended match on failures, but looking for a
Daniel Dunbar [Sun, 22 Nov 2009 22:59:26 +0000 (22:59 +0000)]
FileCheck, PR5239: Try to find the intended match on failures, but looking for a
good nearby fuzzy match. Frequently the input is nearly correct, and just
showing the user the a nearby sensible match is enough to diagnose the problem.
 - The "fuzzyness" is pretty simple and arbitrary, but worked on my three test
   cases. If you encounter problems, or places you think FileCheck should have
   guessed but didn't, please add test cases to PR5239.

For example, previously FileCheck would report this:
--
t.cpp:21:55: error: expected string not found in input
// CHECK: define void @_Z2f25f2_s1([[i64_i64_ty]] %a0)
                                                      ^
<stdin>:19:30: note: scanning from here
define void @_Z2f15f1_s1(%1) nounwind {
                             ^
<stdin>:19:30: note: with variable "i64_i64_ty" equal to "%0"
--

and now it also reports this:
--
<stdin>:27:1: note: possible intended match here
define void @_Z2f25f2_s1(%0) nounwind {
^
--

which makes it clear that the CHECK just has an extra ' %a0' in it, without
having to check the input.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89631 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFileCheck: When a string using variable references fails to match, print
Daniel Dunbar [Sun, 22 Nov 2009 22:08:06 +0000 (22:08 +0000)]
FileCheck: When a string using variable references fails to match, print
additional information about the current definitions of the variables used in
the string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89628 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the source...
Daniel Dunbar [Sun, 22 Nov 2009 22:08:00 +0000 (22:08 +0000)]
SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the source line output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89627 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAllow '_' in FileCheck variable names, it is nice to have at least one
Daniel Dunbar [Sun, 22 Nov 2009 22:07:50 +0000 (22:07 +0000)]
Allow '_' in FileCheck variable names, it is nice to have at least one
separate character.
 - Chris, OK?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89626 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd getFrameIndexReference() to TargetRegisterInfo, which allows targets to
Jim Grosbach [Sun, 22 Nov 2009 20:14:00 +0000 (20:14 +0000)]
Add getFrameIndexReference() to TargetRegisterInfo, which allows targets to
tell debug info which base register to use to reference a frame index on a
per-index basis. This is useful, for example, in the presence of dynamic
stack realignment when local variables are indexed via the stack pointer and
stack-based arguments via the frame pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89620 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMove default FrameReg val to getFrameIndexReference(). Otherwise, debug info can...
Jim Grosbach [Sun, 22 Nov 2009 20:05:32 +0000 (20:05 +0000)]
Move default FrameReg val to getFrameIndexReference(). Otherwise, debug info can get bogus values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89618 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago80-column cleanup
Jim Grosbach [Sun, 22 Nov 2009 19:20:36 +0000 (19:20 +0000)]
80-column cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89612 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoTeach MachineBasicBlock::updateTerminator() to handle a failing TII->ReverseBranchCon...
Jakob Stoklund Olesen [Sun, 22 Nov 2009 18:28:04 +0000 (18:28 +0000)]
Teach MachineBasicBlock::updateTerminator() to handle a failing TII->ReverseBranchCondition(Cond) call.

This fixes the MallocBench/cfrac test case regression.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89608 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate doc re: LLVM_BUILD_EXAMPLES.
Daniel Dunbar [Sun, 22 Nov 2009 18:27:51 +0000 (18:27 +0000)]
Update doc re: LLVM_BUILD_EXAMPLES.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89607 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse ExtractElementInst::Create instead of new; patch by Artur Pietrek!
Daniel Dunbar [Sun, 22 Nov 2009 18:27:43 +0000 (18:27 +0000)]
Use ExtractElementInst::Create instead of new; patch by Artur Pietrek!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89606 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoadd fixme for dubious code. Duncan, what do you think?
Chris Lattner [Sun, 22 Nov 2009 16:16:48 +0000 (16:16 +0000)]
add fixme for dubious code.  Duncan, what do you think?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89602 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoremove a silly condition that doesn't make a lot of sense anymore.
Chris Lattner [Sun, 22 Nov 2009 16:15:59 +0000 (16:15 +0000)]
remove a silly condition that doesn't make a lot of sense anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89601 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoreduce indentation, no functionality change.
Chris Lattner [Sun, 22 Nov 2009 16:05:05 +0000 (16:05 +0000)]
reduce indentation, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89600 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove the AliasAnalysis::getMustAliases method, which is dead.
Chris Lattner [Sun, 22 Nov 2009 16:01:44 +0000 (16:01 +0000)]
Remove the AliasAnalysis::getMustAliases method, which is dead.

The hasNoModRefInfoForCalls isn't worth it as a filter because
basicaa provides m/r info and everything chains to it, so remove
it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89599 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMiss two, PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 15:35:28 +0000 (15:35 +0000)]
Miss two, PR5307.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89596 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoConvert Thumb2 tests to FileCheck for PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 15:18:27 +0000 (15:18 +0000)]
Convert Thumb2 tests to FileCheck for PR5307.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89595 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoTurns out stuff gets allocated to different registers depending on the subtarget.
Benjamin Kramer [Sun, 22 Nov 2009 15:15:52 +0000 (15:15 +0000)]
Turns out stuff gets allocated to different registers depending on the subtarget.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89594 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoConvert ARM tests to FileCheck for PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 14:23:33 +0000 (14:23 +0000)]
Convert ARM tests to FileCheck for PR5307.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89593 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoConvert test to FileCheck.
Benjamin Kramer [Sun, 22 Nov 2009 13:16:36 +0000 (13:16 +0000)]
Convert test to FileCheck.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89589 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoForgot to alter RUN line when converting to FileCheck.
Edward O'Callaghan [Sun, 22 Nov 2009 13:09:48 +0000 (13:09 +0000)]
Forgot to alter RUN line when converting to FileCheck.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89588 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix for bad FileCheck converts in revision 89584.
Edward O'Callaghan [Sun, 22 Nov 2009 12:50:05 +0000 (12:50 +0000)]
Fix for bad FileCheck converts in revision 89584.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89586 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoConvert a few tests to FileCheck for PR5307.
Edward O'Callaghan [Sun, 22 Nov 2009 11:45:44 +0000 (11:45 +0000)]
Convert a few tests to FileCheck for PR5307.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89584 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix whitespace.
Bob Wilson [Sun, 22 Nov 2009 04:24:42 +0000 (04:24 +0000)]
Fix whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89582 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix pr5470. Tablegen handles template arguments by temporarily setting their
Bob Wilson [Sun, 22 Nov 2009 03:58:57 +0000 (03:58 +0000)]
Fix pr5470. Tablegen handles template arguments by temporarily setting their
values, resolving references to them, and then removing the definitions.
If a template argument is set to an undefined value, we need to resolve
references to that argument to an explicit undefined value.  The current code
leaves the reference to the template argument as it is, which causes an
assertion failure later when the definition of the template argument is
removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89581 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove dead code. While there, also turn a few 'T* ' into 'T *' to match the
Nick Lewycky [Sun, 22 Nov 2009 02:38:11 +0000 (02:38 +0000)]
Remove dead code. While there, also turn a few 'T* ' into 'T *' to match the
rest of the file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89577 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoGenerate more correct debug info for frame indices.
Jim Grosbach [Sun, 22 Nov 2009 02:32:29 +0000 (02:32 +0000)]
Generate more correct debug info for frame indices.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89576 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMinor optimization: when doing eq/ne comparions and RHS is a constant - swap operands...
Anton Korobeynikov [Sun, 22 Nov 2009 01:14:08 +0000 (01:14 +0000)]
Minor optimization: when doing eq/ne comparions and RHS is a constant - swap operands, this will allow us to fold imm into comparison.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89574 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDrop unsupported imm operands
Anton Korobeynikov [Sun, 22 Nov 2009 01:13:54 +0000 (01:13 +0000)]
Drop unsupported imm operands

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89573 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse 2-byte alignment for functions. 4 bytes are clear overkill here.
Anton Korobeynikov [Sun, 22 Nov 2009 01:13:39 +0000 (01:13 +0000)]
Use 2-byte alignment for functions. 4 bytes are clear overkill here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89572 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse semicolon as assembler comment string
Anton Korobeynikov [Sun, 22 Nov 2009 01:12:49 +0000 (01:12 +0000)]
Use semicolon as assembler comment string

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89571 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRevert 89562. We're being sneakier than I was giving us credit for, and this
Jim Grosbach [Sat, 21 Nov 2009 23:34:09 +0000 (23:34 +0000)]
Revert 89562. We're being sneakier than I was giving us credit for, and this
isn't necessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89568 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoremove trailing whitespace
Jim Grosbach [Sat, 21 Nov 2009 23:12:12 +0000 (23:12 +0000)]
remove trailing whitespace

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89567 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix some spelling in comments.
Bob Wilson [Sat, 21 Nov 2009 22:44:20 +0000 (22:44 +0000)]
Fix some spelling in comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89566 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAvoid a redundant assertion.
Bob Wilson [Sat, 21 Nov 2009 22:39:27 +0000 (22:39 +0000)]
Avoid a redundant assertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89565 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDarwin requires a frame pointer for all non-leaf functions to support correct
Jim Grosbach [Sat, 21 Nov 2009 21:40:08 +0000 (21:40 +0000)]
Darwin requires a frame pointer for all non-leaf functions to support correct
backtraces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89562 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd predicate operand to NEON instructions. Fix lots (but not all) 80 col violations...
Evan Cheng [Sat, 21 Nov 2009 06:21:52 +0000 (06:21 +0000)]
Add predicate operand to NEON instructions. Fix lots (but not all) 80 col violations in ARMInstrNEON.td.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89542 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAllow target to disable if-converting predicable instructions. e.g. NEON instructions...
Evan Cheng [Sat, 21 Nov 2009 06:20:26 +0000 (06:20 +0000)]
Allow target to disable if-converting predicable instructions. e.g. NEON instructions under ARM mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89541 91177308-0d34-0410-b5e6-96231b3b80d8