oota-llvm.git
15 years agoReapply profiling tests.
Daniel Dunbar [Thu, 3 Sep 2009 07:38:00 +0000 (07:38 +0000)]
Reapply profiling tests.

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

15 years agoRemove undefined behavior when loading optimal edge profile info.
Daniel Dunbar [Thu, 3 Sep 2009 07:37:42 +0000 (07:37 +0000)]
Remove undefined behavior when loading optimal edge profile info.

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

15 years agodon't call getOffset() on jump tables, this fixes three failing olden benchmarks
Chris Lattner [Thu, 3 Sep 2009 07:36:42 +0000 (07:36 +0000)]
don't call getOffset() on jump tables, this fixes three failing olden benchmarks
with the new asmprinter.

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

15 years agoImplement support for X86II::MO_GOT_ABSOLUTE_ADDRESS. We get very
Chris Lattner [Thu, 3 Sep 2009 07:30:56 +0000 (07:30 +0000)]
Implement support for X86II::MO_GOT_ABSOLUTE_ADDRESS.  We get very
different formatting from the old asmprinter, but it should be
semantically the same.  We used to get:

popl %eax
addl $_GLOBAL_OFFSET_TABLE_ + [.-.Lllvm$6.$piclabel], %eax
...

Now we get:

popl %eax
.Lpicbaseref6:
addl $(_GLOBAL_OFFSET_TABLE_ + (.Lpicbaseref6 - .Lllvm$6.$piclabel)), %eax
...

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

15 years agoReference to hidden symbols do not have to go through non-lazy pointer in non-pic...
Evan Cheng [Thu, 3 Sep 2009 07:04:02 +0000 (07:04 +0000)]
Reference to hidden symbols do not have to go through non-lazy pointer in non-pic mode. rdar://7187172.

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

15 years agoRemove VISIBILITY_HIDDEN from this file.
Nick Lewycky [Thu, 3 Sep 2009 06:43:15 +0000 (06:43 +0000)]
Remove VISIBILITY_HIDDEN from this file.

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

15 years agomerge all the basic linux/32 pic tests together into one test.
Chris Lattner [Thu, 3 Sep 2009 06:29:23 +0000 (06:29 +0000)]
merge all the basic linux/32 pic tests together into one test.

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

15 years agorename test
Chris Lattner [Thu, 3 Sep 2009 06:16:49 +0000 (06:16 +0000)]
rename test

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

15 years agouse a darwin triple
Chris Lattner [Thu, 3 Sep 2009 06:15:11 +0000 (06:15 +0000)]
use a darwin triple

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

15 years agoTAI -> MAI
Chris Lattner [Thu, 3 Sep 2009 06:13:54 +0000 (06:13 +0000)]
TAI -> MAI

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

15 years agoadjust expected lines.
Chris Lattner [Thu, 3 Sep 2009 06:13:45 +0000 (06:13 +0000)]
adjust expected lines.

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

15 years agoimprove comments.
Chris Lattner [Thu, 3 Sep 2009 06:00:00 +0000 (06:00 +0000)]
improve comments.

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

15 years agofix MCSymbol printing to exactly match the normal mangler rules so
Chris Lattner [Thu, 3 Sep 2009 05:57:47 +0000 (05:57 +0000)]
fix MCSymbol printing to exactly match the normal mangler rules so
we can diff .s files.

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

15 years agoremove extraneous hack.
Chris Lattner [Thu, 3 Sep 2009 05:54:00 +0000 (05:54 +0000)]
remove extraneous hack.

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

15 years agoMake these functions static and local.
Daniel Dunbar [Thu, 3 Sep 2009 05:47:34 +0000 (05:47 +0000)]
Make these functions static and local.

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

15 years agoTweak comment.
Daniel Dunbar [Thu, 3 Sep 2009 05:47:22 +0000 (05:47 +0000)]
Tweak comment.

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

15 years agoThread an MCAsmInfo pointer through the various MC printing APIs,
Chris Lattner [Thu, 3 Sep 2009 05:46:51 +0000 (05:46 +0000)]
Thread an MCAsmInfo pointer through the various MC printing APIs,
and fix a few things using << on MCSymbols to use ->print(). No
functionality change other than unbreaking my previous patch.

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

15 years agojust use dump()
Chris Lattner [Thu, 3 Sep 2009 05:39:09 +0000 (05:39 +0000)]
just use dump()

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

15 years agoinline insertion operators.
Chris Lattner [Thu, 3 Sep 2009 05:33:01 +0000 (05:33 +0000)]
inline insertion operators.

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

15 years agoIn C++, code is not allowed to call main. In C it is, this
Chris Lattner [Thu, 3 Sep 2009 05:19:59 +0000 (05:19 +0000)]
In C++, code is not allowed to call main.  In C it is, this
simplifylibcalls optimization is thus valid for C++ but not C.
It's not important enough to worry about for C++ apps, so just
remove it.

rdar://7191924

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

15 years agomerge globaladdress symbol processing stuff into other stuff. Now
Chris Lattner [Thu, 3 Sep 2009 05:06:07 +0000 (05:06 +0000)]
merge globaladdress symbol processing stuff into other stuff.  Now
all global variable operand flag processing stuff is shared between
different operand types.

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

15 years agoUnbreak x86_64 build.
Evan Cheng [Thu, 3 Sep 2009 05:01:00 +0000 (05:01 +0000)]
Unbreak x86_64 build.

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

15 years agoSplit the "operand -> symbol" logic from the "get offset and other munging
Chris Lattner [Thu, 3 Sep 2009 04:56:20 +0000 (04:56 +0000)]
Split the "operand -> symbol" logic from the "get offset and other munging
from operand" logic.  GlobalAddress still todo.

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

15 years agoimplement lowering support for constant pool index operands, this gets a bunch more
Chris Lattner [Thu, 3 Sep 2009 04:44:53 +0000 (04:44 +0000)]
implement lowering support for constant pool index operands, this gets a bunch more
olden programs working.

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

15 years agoX86JITInfo::getLazyResolverFunction() should not read cpu id to determine whether...
Evan Cheng [Thu, 3 Sep 2009 04:37:05 +0000 (04:37 +0000)]
X86JITInfo::getLazyResolverFunction() should not read cpu id to determine whether sse is available. Just use consult subtarget.

No functionality changes.

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

15 years agoSet the 'cached digest' flag after computing the digest for an
Ted Kremenek [Thu, 3 Sep 2009 04:21:34 +0000 (04:21 +0000)]
Set the 'cached digest' flag after computing the digest for an
ImutAVLTree.  This was accidentally left out, and essentially caused
digest caching to be ignored in ImmutableMap and ImmutableSet (this
bug was detected from shark traces that showed ComputeDigest was in
the hot path in the clang static analyzer).

This reduces the running time of the clang static analyzer on an
example benchmark by ~32% for both RegionStore (field-sensitivty) and
BasicStore (without field-sensitivity).

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

15 years agoupdate test for alignment value in hex
Chris Lattner [Thu, 3 Sep 2009 04:03:44 +0000 (04:03 +0000)]
update test for alignment value in hex

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

15 years agooutput alignment value in hex so that we get:
Chris Lattner [Thu, 3 Sep 2009 04:01:10 +0000 (04:01 +0000)]
output alignment value in hex so that we get:
  .align 3, 0x90
instead of,
  .align 3, 144

suggested by eric.

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

15 years agosimplify this by using SmallString::str(), much nicer!
Chris Lattner [Thu, 3 Sep 2009 03:54:02 +0000 (03:54 +0000)]
simplify this by using SmallString::str(), much nicer!

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

15 years agoFixed a test that ensures the LocalRewriter does not attempt to
Lang Hames [Thu, 3 Sep 2009 02:52:02 +0000 (02:52 +0000)]
Fixed a test that ensures the LocalRewriter does not attempt to
avoid reloads by reusing clobbered registers.

This was causing issues in 256.bzip2 when compiled with PIC for
a while (starting at r78217), though the problem has since been masked.

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

15 years agoback out my recent commit (r80858), it seems to break self-hosting buildbot's stage...
Gabor Greif [Thu, 3 Sep 2009 02:02:59 +0000 (02:02 +0000)]
back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure

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

15 years agoNow Bitcode reader bug is fixed. Reapply 80839.
Devang Patel [Thu, 3 Sep 2009 01:39:20 +0000 (01:39 +0000)]
Now Bitcode reader bug is fixed. Reapply 80839.

Use CallbackVH, instead of WeakVH, to hold MDNode elements.
Use FoldingSetNode to unique MDNodes in a context.
Use CallbackVH hooks to update context's MDNodeSet appropriately.

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

15 years agoAdd new value for given index in MDValuePtrs.
Devang Patel [Thu, 3 Sep 2009 01:38:02 +0000 (01:38 +0000)]
Add new value for given index in MDValuePtrs.

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

15 years agoImprove llvm::getHostTriple for some cases where the LLVM_HOSTTRIPLE is not
Daniel Dunbar [Thu, 3 Sep 2009 01:10:13 +0000 (01:10 +0000)]
Improve llvm::getHostTriple for some cases where the LLVM_HOSTTRIPLE is not
reliable.

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

15 years agore-commit r66920 (which has been backed out in r66953) I may have more luck this...
Gabor Greif [Thu, 3 Sep 2009 00:18:58 +0000 (00:18 +0000)]
re-commit r66920 (which has been backed out in r66953) I may have more luck this time. I'll back out if needed...

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

15 years agoAdded opaque 32-, 48-, and 80-bit memory operand types to the X86
Sean Callanan [Thu, 3 Sep 2009 00:04:47 +0000 (00:04 +0000)]
Added opaque 32-, 48-, and 80-bit memory operand types to the X86
instruction tables to support segmented addressing (and other objects
of obscure type).
Modified the X86 assembly printers to handle these new operand types.
Added JMP and CALL instructions that use segmented addresses.

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

15 years agoShow derived host triple in --version.
Daniel Dunbar [Wed, 2 Sep 2009 23:52:38 +0000 (23:52 +0000)]
Show derived host triple in --version.

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

15 years agoImprove support for cross-hosted builds of LLVM.
Shantonu Sen [Wed, 2 Sep 2009 23:52:23 +0000 (23:52 +0000)]
Improve support for cross-hosted builds of LLVM.
--build=triple and other configure options are passed
to the BuildTools/ sub-invocation more consistently

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

15 years agoUnbreak my CMake build. Say you'll link again.
Douglas Gregor [Wed, 2 Sep 2009 22:45:31 +0000 (22:45 +0000)]
Unbreak my CMake build. Say you'll link again.

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

15 years agoRevert 80839 for now. It causes test failures.
Devang Patel [Wed, 2 Sep 2009 21:49:26 +0000 (21:49 +0000)]
Revert 80839 for now. It causes test failures.

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

15 years agoUse CallbackVH, instead of WeakVH, to hold MDNode elements.
Devang Patel [Wed, 2 Sep 2009 21:22:09 +0000 (21:22 +0000)]
Use CallbackVH, instead of WeakVH, to hold MDNode elements.
Use FoldingSetNode to unique MDNodes in a context.
Use CallbackVH hooks to update context's MDNodeSet appropriately.

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

15 years agoMore missed vdup patterns
Anton Korobeynikov [Wed, 2 Sep 2009 21:21:28 +0000 (21:21 +0000)]
More missed vdup patterns

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

15 years agoSwitch llc from ParseBitcodeFile to ParseIRFile. This lets llc
Dan Gohman [Wed, 2 Sep 2009 19:35:19 +0000 (19:35 +0000)]
Switch llc from ParseBitcodeFile to ParseIRFile. This lets llc
transparently read either LLVM Assembly or LLVM Bitcode files.

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

15 years agoAdd a comment noting the memory ownership rules.
Dan Gohman [Wed, 2 Sep 2009 19:21:56 +0000 (19:21 +0000)]
Add a comment noting the memory ownership rules.

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

15 years agoAdd convenience functions for reading in LLVM IR that autodetect
Dan Gohman [Wed, 2 Sep 2009 17:54:06 +0000 (17:54 +0000)]
Add convenience functions for reading in LLVM IR that autodetect
and LLVM Assembly and LLVM Bitcode and automatically call the
corresponding reader.

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

15 years agoswitch from std::string to SmallString + raw_svector_ostream.
Chris Lattner [Wed, 2 Sep 2009 17:37:38 +0000 (17:37 +0000)]
switch from std::string to SmallString + raw_svector_ostream.

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

15 years agosplit mcinst lowering stuff out to its own file.
Chris Lattner [Wed, 2 Sep 2009 17:35:12 +0000 (17:35 +0000)]
split mcinst lowering stuff out to its own file.

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

15 years agoFix the syntax of add/sub/mul nsw/nuw and sdiv exact.
Dan Gohman [Wed, 2 Sep 2009 17:31:42 +0000 (17:31 +0000)]
Fix the syntax of add/sub/mul nsw/nuw and sdiv exact.

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

15 years agoAdd const qualifiers for isBitcodeWrapper, and add new functions
Dan Gohman [Wed, 2 Sep 2009 17:21:29 +0000 (17:21 +0000)]
Add const qualifiers for isBitcodeWrapper, and add new functions
isRawBitcode and isBitcode to allow clients to test whether a given
memory buffer holds a bitcode image.

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

15 years agoRefactor common code from ParseAssemblyString and ParseAssemblyFile,
Dan Gohman [Wed, 2 Sep 2009 17:18:19 +0000 (17:18 +0000)]
Refactor common code from ParseAssemblyString and ParseAssemblyFile,
to expose a low-level interface for parsing from an existing MemoryBuffer.

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

15 years agoAdd const qualifiers to dominates' arguments.
Dan Gohman [Wed, 2 Sep 2009 17:05:05 +0000 (17:05 +0000)]
Add const qualifiers to dominates' arguments.

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

15 years agoRemoved temporarily because of breaking Darwin builds.
Andreas Neustifter [Wed, 2 Sep 2009 16:47:24 +0000 (16:47 +0000)]
Removed temporarily because of breaking Darwin builds.
(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090831/086214.html)

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

15 years agoRearrange code to eliminate redundancy and avoid gotos.
Bob Wilson [Wed, 2 Sep 2009 16:35:35 +0000 (16:35 +0000)]
Rearrange code to eliminate redundancy and avoid gotos.

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

15 years agoplug another leak in LLParser::PerFunctionState::SetInstName()
Nuno Lopes [Wed, 2 Sep 2009 15:02:57 +0000 (15:02 +0000)]
plug another leak in LLParser::PerFunctionState::SetInstName()

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

15 years agoChanged profiling-tool-chain.ll test to use optimal-edge-profiling instead of
Andreas Neustifter [Wed, 2 Sep 2009 14:24:08 +0000 (14:24 +0000)]
Changed profiling-tool-chain.ll test to use optimal-edge-profiling instead of
edge-profiling, this is more useful since the loading of the
optimal-edge-profiling is more complicated.
The edge-profiling is tested in edge-profiling.ll where only the
instrumentation is tested.

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

15 years agoplug memory leak in LLParser::PerFunctionState::SetInstName() by deleting a value...
Nuno Lopes [Wed, 2 Sep 2009 14:22:03 +0000 (14:22 +0000)]
plug memory leak in LLParser::PerFunctionState::SetInstName() by deleting a value after replacing it

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

15 years agoSort edges in MaximumSpanningTree more stable in case of equal weight.
Andreas Neustifter [Wed, 2 Sep 2009 14:03:11 +0000 (14:03 +0000)]
Sort edges in MaximumSpanningTree more stable in case of equal weight.
(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085890.html)

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

15 years agoChanged set of BlocksToInstrument to set of InsertedBlocks that do not have to
Andreas Neustifter [Wed, 2 Sep 2009 13:59:05 +0000 (13:59 +0000)]
Changed set of BlocksToInstrument to set of InsertedBlocks that do not have to
be instrumented.

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

15 years agoCode cleanups and added comments.
Andreas Neustifter [Wed, 2 Sep 2009 12:38:39 +0000 (12:38 +0000)]
Code cleanups and added comments.

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

15 years agoOpaque types didn't work if llvm_is_multithreaded().
Torok Edwin [Wed, 2 Sep 2009 12:23:05 +0000 (12:23 +0000)]
Opaque types didn't work if llvm_is_multithreaded().
AlwaysOpaqueTy is always NULL at this point, and it causes an assertion failure.
Fix it by using the just constructed tmp instead.

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

15 years agoset svn:ignore
Nuno Lopes [Wed, 2 Sep 2009 11:58:01 +0000 (11:58 +0000)]
set svn:ignore

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

15 years agoFix DbgStopPointInst->getFileName/getDirectory, broken by the MDNodification in
Torok Edwin [Wed, 2 Sep 2009 11:13:56 +0000 (11:13 +0000)]
Fix DbgStopPointInst->getFileName/getDirectory, broken by the MDNodification in
r80406, and readd a -print-dbginfo test.

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

15 years agoRetype from unsigned to CallingConv::ID accordingly. Approved by Bob Wilson.
Sandeep Patel [Wed, 2 Sep 2009 08:44:58 +0000 (08:44 +0000)]
Retype from unsigned to CallingConv::ID accordingly. Approved by Bob Wilson.

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

15 years agoFix month.
Chris Lattner [Wed, 2 Sep 2009 06:34:22 +0000 (06:34 +0000)]
Fix month.

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

15 years agofix PR4815: some cases where DeleteDeadInstruction can delete
Chris Lattner [Wed, 2 Sep 2009 06:31:02 +0000 (06:31 +0000)]
fix PR4815: some cases where DeleteDeadInstruction can delete
the instruction BBI points to.

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

15 years agoclean up this code a bit.
Chris Lattner [Wed, 2 Sep 2009 06:15:37 +0000 (06:15 +0000)]
clean up this code a bit.

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

15 years agoeliminate VISIBILITY_HIDDEN from Transforms/Scalar. PR4861
Chris Lattner [Wed, 2 Sep 2009 06:11:42 +0000 (06:11 +0000)]
eliminate VISIBILITY_HIDDEN from Transforms/Scalar.  PR4861

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

15 years agorefactor select 'sched insertion' out to its own method.
Chris Lattner [Wed, 2 Sep 2009 05:57:00 +0000 (05:57 +0000)]
refactor select 'sched insertion' out to its own method.

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

15 years agoAdd support for modeling whether or not the processor has support for
Chris Lattner [Wed, 2 Sep 2009 05:53:04 +0000 (05:53 +0000)]
Add support for modeling whether or not the processor has support for
conditional moves as a subtarget feature.  This is the easy part of
PR4841.

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

15 years agofix PR4848 an infinite loop when indexing down through a recursive gep
Chris Lattner [Wed, 2 Sep 2009 05:35:45 +0000 (05:35 +0000)]
fix PR4848 an infinite loop when indexing down through a recursive gep
and we get the original pointer type.  This doesn't mean that we're
at the first pointer being indexed.  Correct the predicate.

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

15 years agofix PR4837, some bugs folding vector compares. These
Chris Lattner [Wed, 2 Sep 2009 05:12:37 +0000 (05:12 +0000)]
fix PR4837, some bugs folding vector compares.  These
return a vector of i1, not i1 itself.

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

15 years agorevert my patch, duncan points out what is wrong with my logic. Add
Chris Lattner [Wed, 2 Sep 2009 04:39:04 +0000 (04:39 +0000)]
revert my patch, duncan points out what is wrong with my logic.  Add
a comment so that I don't change this in the future :)

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

15 years agoone more try at making this simpler, hopefully it won't break everything :)
Chris Lattner [Wed, 2 Sep 2009 04:34:06 +0000 (04:34 +0000)]
one more try at making this simpler, hopefully it won't break everything :)

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

15 years agoComplicate Chris's simplification, avoiding complaints
Duncan Sands [Wed, 2 Sep 2009 03:48:41 +0000 (03:48 +0000)]
Complicate Chris's simplification, avoiding complaints
about singular iterators when building with expensive
checks turned on.

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

15 years agoDon't force the triple or data layout in this test. We just have to get them
Daniel Dunbar [Wed, 2 Sep 2009 02:43:11 +0000 (02:43 +0000)]
Don't force the triple or data layout in this test. We just have to get them
from the host and hope that works.

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

15 years agoAdd a comment.
Dan Gohman [Wed, 2 Sep 2009 01:14:16 +0000 (01:14 +0000)]
Add a comment.

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

15 years agoFixed the asmstrings for 8-bit, 16-bit, and 32-bit ADD %rAX, imm instructions.
Sean Callanan [Wed, 2 Sep 2009 00:55:49 +0000 (00:55 +0000)]
Fixed the asmstrings for 8-bit, 16-bit, and 32-bit ADD %rAX, imm instructions.
Added a 64-bit ADD %RAX, imm32 instruction.
Added all 4 forms for AND %rAX, imm and CMP %rAX, imm.

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

15 years agoFix PR4845: r77946 completely broke x86_64 Darwin (or any situation where the
Evan Cheng [Wed, 2 Sep 2009 00:19:03 +0000 (00:19 +0000)]
Fix PR4845: r77946 completely broke x86_64 Darwin (or any situation where the
desired triplet is a sub-target, e.g. thumbv7 vs. arm host). Reverting the
patch isn't quite right either since the previous behavior does not allow the
triplet to be overridden with -march.

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

15 years agoDisable uniqueness test for now.
Devang Patel [Wed, 2 Sep 2009 00:16:33 +0000 (00:16 +0000)]
Disable uniqueness test for now.

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

15 years agoFor now disable MDNode uniquing. This fixes llvm-gcc bootstrap failure on certain...
Devang Patel [Tue, 1 Sep 2009 23:56:42 +0000 (23:56 +0000)]
For now disable MDNode uniquing. This fixes llvm-gcc bootstrap failure on certain Mac OS X 10.5. I am working on a proper fix.

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

15 years agoAvoid calling removeVirtualRegisterKilled which iterates over the operands
Bob Wilson [Tue, 1 Sep 2009 23:18:46 +0000 (23:18 +0000)]
Avoid calling removeVirtualRegisterKilled which iterates over the operands
to find the kill, since we already have the operand.

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

15 years agoRefactor some code into separate functions. No functional changes.
Bob Wilson [Tue, 1 Sep 2009 22:51:08 +0000 (22:51 +0000)]
Refactor some code into separate functions.  No functional changes.

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

15 years agoMove use of LV inside condition that guards for null LV.
Bob Wilson [Tue, 1 Sep 2009 22:19:00 +0000 (22:19 +0000)]
Move use of LV inside condition that guards for null LV.

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

15 years agoFix build warning.
Daniel Dunbar [Tue, 1 Sep 2009 22:07:12 +0000 (22:07 +0000)]
Fix build warning.

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

15 years agoSimplify.
Daniel Dunbar [Tue, 1 Sep 2009 22:07:06 +0000 (22:07 +0000)]
Simplify.

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

15 years agoFix what I believe is a copy-n-pasto introduced in r78129.
Daniel Dunbar [Tue, 1 Sep 2009 22:07:00 +0000 (22:07 +0000)]
Fix what I believe is a copy-n-pasto introduced in r78129.
 - Bruno, please check!!

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

15 years agoX86/Encoding: Support ExternalSymbol operands in emitDisplacementField (for consistency).
Daniel Dunbar [Tue, 1 Sep 2009 22:06:53 +0000 (22:06 +0000)]
X86/Encoding: Support ExternalSymbol operands in emitDisplacementField (for consistency).

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

15 years agoRemove Offset from ExternalSybmol MachineOperands, this is unused (and at least partl...
Daniel Dunbar [Tue, 1 Sep 2009 22:06:46 +0000 (22:06 +0000)]
Remove Offset from ExternalSybmol MachineOperands, this is unused (and at least partly unsupported, in X86 encoding at least).

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

15 years agodebug intrinsics do not go in the callgraph, this fixes a couple
Chris Lattner [Tue, 1 Sep 2009 21:37:50 +0000 (21:37 +0000)]
debug intrinsics do not go in the callgraph, this fixes a couple
clang regtest failures.

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

15 years agoFix a regression I introduced in r80708, found by llvm-test.
Chris Lattner [Tue, 1 Sep 2009 20:33:43 +0000 (20:33 +0000)]
Fix a regression I introduced in r80708, found by llvm-test.

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

15 years agoFix ELF Writter related memory leaks
Bruno Cardoso Lopes [Tue, 1 Sep 2009 19:25:52 +0000 (19:25 +0000)]
Fix ELF Writter related memory leaks

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

15 years agoOptimalEdgeProfiling: Reading in Profiles.
Andreas Neustifter [Tue, 1 Sep 2009 19:08:51 +0000 (19:08 +0000)]
OptimalEdgeProfiling: Reading in Profiles.
This enables LLVM to read the OptimalEdgeProfiles.

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

15 years agoAddedum to r80712, forgot to add files.
Andreas Neustifter [Tue, 1 Sep 2009 19:05:58 +0000 (19:05 +0000)]
Addedum to r80712, forgot to add files.

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

15 years agoOptimalEdgeProfiling: Creation of profiles.
Andreas Neustifter [Tue, 1 Sep 2009 19:03:44 +0000 (19:03 +0000)]
OptimalEdgeProfiling: Creation of profiles.
This adds the instrumentation and runtime part of OptimalEdgeProfiling.

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

15 years agoSmall fix in ProfileEstimator that eliminates duplicated code.
Andreas Neustifter [Tue, 1 Sep 2009 19:01:59 +0000 (19:01 +0000)]
Small fix in ProfileEstimator that eliminates duplicated code.

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

15 years agoreduce size of SmallString to something more reasonable
Jim Grosbach [Tue, 1 Sep 2009 18:55:08 +0000 (18:55 +0000)]
reduce size of SmallString to something more reasonable

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

15 years agoremove CallGraphNode::replaceCallSite, it is redundant with other APIs.
Chris Lattner [Tue, 1 Sep 2009 18:52:39 +0000 (18:52 +0000)]
remove CallGraphNode::replaceCallSite, it is redundant with other APIs.

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

15 years agoAdd support for generating code for vst{234}lane intrinsics.
Bob Wilson [Tue, 1 Sep 2009 18:51:56 +0000 (18:51 +0000)]
Add support for generating code for vst{234}lane intrinsics.

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

15 years agocleanup/simplify
Chris Lattner [Tue, 1 Sep 2009 18:50:55 +0000 (18:50 +0000)]
cleanup/simplify

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

15 years agoFix incorrect declarations of intrinsics in this test.
Bob Wilson [Tue, 1 Sep 2009 18:50:43 +0000 (18:50 +0000)]
Fix incorrect declarations of intrinsics in this test.

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