Nick Lewycky [Fri, 6 Feb 2009 01:58:34 +0000 (01:58 +0000)]
Free the buffer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63907
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 6 Feb 2009 01:49:19 +0000 (01:49 +0000)]
Fix test. It produces unexpected code if sse4.1 is on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63906
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 01:31:28 +0000 (01:31 +0000)]
Get rid of one more non-DebugLoc getNode and
its corresponding getTargetNode. Lots of
caller changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63904
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 6 Feb 2009 00:13:43 +0000 (00:13 +0000)]
Fix a crasher: we need to check that the function is non-null before using it!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63902
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 5 Feb 2009 23:36:27 +0000 (23:36 +0000)]
Refactor my previous change to maintain the distinction between AliasAnalysis and BasicAliasAnalysis. This involves some wider changes because it
folds away some never-used methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63900
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 23:32:52 +0000 (23:32 +0000)]
Ignore dbg intrinsics while propagating conditional expression info. Take 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63898
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 22:24:17 +0000 (22:24 +0000)]
isAsCheapAsMove instructions can have register src operands. Check if they are really re-materializable.
This fixes sse.expandfft and sse.stepfft.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63890
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 22:07:54 +0000 (22:07 +0000)]
Remove a non-DebugLoc version of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63889
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 21:46:41 +0000 (21:46 +0000)]
Revert rev. 63876. It is causing llvm-gcc bootstrap failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63888
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 5 Feb 2009 21:34:56 +0000 (21:34 +0000)]
Delete some trailing whiespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63887
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 21:20:44 +0000 (21:20 +0000)]
Remove 3 non-DebugLoc variants of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63886
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 5 Feb 2009 20:49:49 +0000 (20:49 +0000)]
FIx spelling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63883
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 5 Feb 2009 20:45:27 +0000 (20:45 +0000)]
Probe for flags before using them to try to help compiling with
compilers that don't support those flags. This hopefully will help
gcc 3.X compile this code. http://llvm.org/PR3487
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63882
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 19:59:42 +0000 (19:59 +0000)]
Remove dead blocks in the end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63880
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 19:15:39 +0000 (19:15 +0000)]
Ignore dbg intrinsics while propagating conditional expression info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63876
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 18:15:17 +0000 (18:15 +0000)]
testcase for rdar://
6551276 and llvm-gcc r63873
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63874
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 17:58:39 +0000 (17:58 +0000)]
fix PR3488: llvm-ar r doesn't replace existing files
Patch by Daniel Shelton!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63870
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 5 Feb 2009 10:21:34 +0000 (10:21 +0000)]
Revert the previous commit. It seems it didn't
really solve the problem. Also it changed the
name from libLLVMgold to LLVMgold (correcting
the name resulted in the original problem
suddenly reappearing).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63861
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 5 Feb 2009 09:54:02 +0000 (09:54 +0000)]
Stop llvm-config thinking that there are circular
dependencies between libraries due to __dso_handle
when doing "make install". I don't know what the
LINK_COMPONENTS stuff is about, so I left it alone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63860
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:51:13 +0000 (08:51 +0000)]
Machine LICM increases register pressure and it almost always increase code size. For now, disable it for optimizing for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63856
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:46:33 +0000 (08:46 +0000)]
Turn on machine LICM in non-fast mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63855
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:45:46 +0000 (08:45 +0000)]
Teach machine licm to CSE hoisted instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63854
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:45:04 +0000 (08:45 +0000)]
ReMaterializeTrivialDef need to trim the live interval to the last kill if the copy kills the source register. This fixes uint64tof64.ll after ARM::MOVi is marked as isAsCheapAsAMove.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63853
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:42:55 +0000 (08:42 +0000)]
A few more isAsCheapAsAMove.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63852
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 5 Feb 2009 08:41:53 +0000 (08:41 +0000)]
Clarify comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63851
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 06:55:21 +0000 (06:55 +0000)]
if we have a large GEP offset on a 32-bit or other target, make
sure to print the value properly sext'd to the right pointer size.
This fixes PR3481.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63843
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 5 Feb 2009 05:58:41 +0000 (05:58 +0000)]
Pre-alloc splitting needs to be more careful to avoid inserting spills/restores
between call frame setup/restore points. Unfortunately, this regresses
code size a bit, but at least it's correct now!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63837
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 5 Feb 2009 05:42:28 +0000 (05:42 +0000)]
PR3485, document alignment on byref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63836
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 5 Feb 2009 05:36:01 +0000 (05:36 +0000)]
It's not obvious, but lto_module_create_from_memory doesn't need to use the
buffer after it creates the Module. Thus, we don't need to store this pointer
in claimed_file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63834
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 5 Feb 2009 04:47:42 +0000 (04:47 +0000)]
Fix a bug where we were not emitting a cvt rnd sat node for converting
between a unsigned integer and signed integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63831
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 5 Feb 2009 04:14:23 +0000 (04:14 +0000)]
Remove accidentally included debug message!
Reword a comment for clarity. Remove some extra whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63823
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 01:49:45 +0000 (01:49 +0000)]
Reapply 63765. Patches for clang and llvm-gcc to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63812
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 01:01:16 +0000 (01:01 +0000)]
Get rid of 3 non-DebugLoc getNode variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63808
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 5 Feb 2009 00:30:42 +0000 (00:30 +0000)]
Ignore dbg intrinsics while folding switch instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63802
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 5 Feb 2009 00:20:09 +0000 (00:20 +0000)]
Remove non-DebugLoc versions of getMergeValues, ZeroExtendInReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63800
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 23:02:30 +0000 (23:02 +0000)]
Remove non-DebugLoc forms of CopyToReg and CopyFromReg.
Adjust callers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63789
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 22:47:25 +0000 (22:47 +0000)]
Reverting 63765. This broke the build of both clang
and llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63786
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Feb 2009 21:39:48 +0000 (21:39 +0000)]
Ignore dbg intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63781
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 4 Feb 2009 21:10:56 +0000 (21:10 +0000)]
Add test case for r63760.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63774
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 4 Feb 2009 21:07:37 +0000 (21:07 +0000)]
Remove now-incorrect test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63772
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Feb 2009 21:00:02 +0000 (21:00 +0000)]
Alphabetize includes. Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63771
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 4 Feb 2009 20:30:10 +0000 (20:30 +0000)]
80 column rule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63768
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 20:06:27 +0000 (20:06 +0000)]
Remove non-DebugLoc versions of getLoad and getStore.
Adjust the many callers of those versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63767
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 4 Feb 2009 19:47:21 +0000 (19:47 +0000)]
New feature: add support for target intrinsics being defined in the
target directories themselves. This also means that VMCore no longer
needs to know about every target's list of intrinsics. Future work
will include converting the PowerPC target to this interface as an
example implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63765
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 4 Feb 2009 19:38:14 +0000 (19:38 +0000)]
Avoids generating a legalization assert for the case where a vector type is legal
but when legalizing the operation, we split the vector type and generate a library
call whose type needs to be promoted. For example, X86 with SSE on but MMX off,
a divide v2i64 will be scalarized to 2 calls to a library using i64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63760
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Feb 2009 19:12:25 +0000 (19:12 +0000)]
mention that PIC is needed for libLTO and libLLVMgold
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63755
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Feb 2009 19:09:07 +0000 (19:09 +0000)]
Bill implemented this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63752
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Feb 2009 19:08:01 +0000 (19:08 +0000)]
add a note, this is why we're faster at SciMark-MonteCarlo with
SSE disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63751
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Feb 2009 18:18:58 +0000 (18:18 +0000)]
Skip over zero registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63748
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Feb 2009 17:48:18 +0000 (17:48 +0000)]
allow main to have any integer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63743
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Feb 2009 17:40:28 +0000 (17:40 +0000)]
remove printf - it was there only for debugging!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63742
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 4 Feb 2009 17:39:30 +0000 (17:39 +0000)]
add support for .a files containing LLVM IR to the gold plugin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63741
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 4 Feb 2009 17:28:58 +0000 (17:28 +0000)]
Minor code cleanups; no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63740
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 4 Feb 2009 16:46:19 +0000 (16:46 +0000)]
Since I'm obliged to work with a development OS that currently doesn't
support GraphViz, I've been using the foo->dump() facility. This
patch is a minor rewrite to the SelectionDAG dump() stuff to make it a
little more helpful. The existing foo->dump() functionality does not
change; this patch adds foo->dumpr(). All of this is only useful when
running LLVM under a debugger.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63736
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 4 Feb 2009 11:17:06 +0000 (11:17 +0000)]
Allow the inverse transform x86_fp80 -> i80 (also
fires during the Ada build).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63731
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 4 Feb 2009 10:17:14 +0000 (10:17 +0000)]
Fix PR3468: a crash when constant folding a bitcast of
i80 to x86 long double (this was presumably generated
by sroa).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63730
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Feb 2009 09:21:58 +0000 (09:21 +0000)]
Don't call isInvariantLoad twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63729
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Feb 2009 09:19:56 +0000 (09:19 +0000)]
Don't bother hoisting out a "cheap" instruction if all of its uses are PHIs. LICM "cheap" instructions are not particularly beneficial to start with. This will just end up making the copies harder to coalesce.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63728
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Feb 2009 07:17:49 +0000 (07:17 +0000)]
For now, only hoist re-materilizable instructions. LICM will increase register pressure. We want to avoid spilling more instructions if it's possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63725
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 4 Feb 2009 06:27:44 +0000 (06:27 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63724
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 4 Feb 2009 06:26:47 +0000 (06:26 +0000)]
Reapply patch from r62553, with a fix to avoid looking for an ffi.h that isn't
there.
This changes the interpreter to use libffi. After this patch, the interpreter
will barely be able to call any external functions if built on a system without
libffi installed (just enough to pass 'make check' really). But with libffi,
we can now call any function that isn't variadic or taking a struct or vector
parameter (but pointer to struct is fine). Patch by Alexei Svitkine!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63723
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 4 Feb 2009 05:16:46 +0000 (05:16 +0000)]
Finish making AliasAnalysis aware of the fact that most atomic intrinsics only dereference their arguments, and enhance
BasicAA to make use of this fact when computing ModRef info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63718
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 02:34:38 +0000 (02:34 +0000)]
Remove non-DebugLoc forms of the exotic forms
of Lod and Sto; patch uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63716
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Feb 2009 01:54:10 +0000 (01:54 +0000)]
fix a pretty serious bug in StringMap where GetOrCreate(strstart,strend, z)
would not set new values to Z.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63707
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Feb 2009 01:51:53 +0000 (01:51 +0000)]
add a friend needed by a stringmap change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63706
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 01:48:28 +0000 (01:48 +0000)]
Remove some more non-DebugLoc versions of construction
functions, with callers adjusted to fit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63705
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 01:33:20 +0000 (01:33 +0000)]
Check in file I forgot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63704
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 01:17:06 +0000 (01:17 +0000)]
Remove a few non-DebugLoc versions of node creation
functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63703
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Wed, 4 Feb 2009 01:16:59 +0000 (01:16 +0000)]
Fixes a case where we generate an incorrect mask for pshfhw in the presence
of undefs and incorrectly determining if we have punpckldq.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63702
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Feb 2009 01:06:11 +0000 (01:06 +0000)]
While folding vallue comparison terminators ignore dbg intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63700
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 00:33:20 +0000 (00:33 +0000)]
Patch up omissions in DebugLoc propagation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63693
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 4 Feb 2009 00:13:36 +0000 (00:13 +0000)]
Fill in more omissions in DebugLog propagation.
I think that's it for this directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63690
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 4 Feb 2009 00:05:34 +0000 (00:05 +0000)]
Constify and don't return a reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63689
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Feb 2009 00:03:08 +0000 (00:03 +0000)]
Ignore dbg intrinsics while hoisting common code in the two blocks up into the branch block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63687
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 3 Feb 2009 23:04:43 +0000 (23:04 +0000)]
DebugLoc propagation; adjustment to things omitted
from SelectionDagBuild.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63680
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Feb 2009 22:55:54 +0000 (22:55 +0000)]
Erm. Would be nice to initialize this variable. . .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63677
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Feb 2009 22:49:58 +0000 (22:49 +0000)]
Add getDebugLocTuple to retrieve the DebugLocTuple for a given DebugLoc object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63676
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Feb 2009 22:49:14 +0000 (22:49 +0000)]
Add getter for the index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63675
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 3 Feb 2009 22:26:34 +0000 (22:26 +0000)]
Need this file too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63674
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 3 Feb 2009 22:26:09 +0000 (22:26 +0000)]
Add some DL propagation to places that didn't
have it yet. More coming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63673
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 3 Feb 2009 22:12:02 +0000 (22:12 +0000)]
Do not let dbg intrinsic block folding of two entry phi node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63671
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 3 Feb 2009 22:04:27 +0000 (22:04 +0000)]
If "optimize for size" attribute is set then block non-trivial loop unswitches but allow trivial loop unswitches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63670
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 3 Feb 2009 21:48:12 +0000 (21:48 +0000)]
DebugLoc propgation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63664
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Feb 2009 21:38:21 +0000 (21:38 +0000)]
More whitespace fixin'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63663
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Feb 2009 21:17:20 +0000 (21:17 +0000)]
Whitespace and comment changes. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63660
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 21:08:45 +0000 (21:08 +0000)]
teach "convert from scalar" to handle loads of fca's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63659
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 21:01:03 +0000 (21:01 +0000)]
refactor the interface to ConvertUsesOfLoadToScalar,
renaming it to ConvertScalar_ExtractValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63658
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 3 Feb 2009 20:21:25 +0000 (20:21 +0000)]
DebugLoc propagation. done with file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63656
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 3 Feb 2009 19:46:28 +0000 (19:46 +0000)]
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63653
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 19:45:44 +0000 (19:45 +0000)]
convert ConvertUsesOfLoadToScalar to use IRBuilder,
no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63652
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 19:41:50 +0000 (19:41 +0000)]
switch ConvertScalar_InsertValue to use an IRBuilder, no
functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63651
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 3 Feb 2009 19:33:06 +0000 (19:33 +0000)]
DebugLoc propagation. 2/3 through file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63650
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 19:30:11 +0000 (19:30 +0000)]
make scalar conversion handle stores of first class
aggregate values. loads are not yet handled (coming
soon to an sroa near you).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63649
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Feb 2009 18:57:45 +0000 (18:57 +0000)]
Change the post-RA scheduler to iterate through the
basic-block segments bottom-up instead of top down. This
is the first step in a general restructuring of the way
register liveness is tracked in the post-RA scheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63643
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 3 Feb 2009 18:53:21 +0000 (18:53 +0000)]
Tevert part of the x86 subtarget logic changes: when -march=x86-64
is given, override the subtarget settings and enable 64-bit support.
This restores the earlier behavior, and fixes regressions on
Non-64-bit-capable x86-32 hosts.
This isn't necessarily the best approach, but the most obvious
alternative is to require -mcpu=x86-64 or -mattr=+64bit to be used
with -march=x86-64 when the host doesn't have 64-bit support. This
makes things little more consistent, but it's less convenient, and
it has the practical drawback of requiring lots of test changes, so
I opted for the above approach for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63642
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 3 Feb 2009 18:46:32 +0000 (18:46 +0000)]
First initialize DAG otherwise dwarf writer is used uninitialized.
Duncan spotted this. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63641
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 18:15:05 +0000 (18:15 +0000)]
Make SROA produce a vector only when the alloca is actually
accessed at least once as a vector. This prevents it from
compiling the example in not-a-vector into:
define double @test(double %A, double %B) {
%tmp4 = insertelement <7 x double> undef, double %A, i32 0
%tmp = insertelement <7 x double> %tmp4, double %B, i32 4
%tmp2 = extractelement <7 x double> %tmp, i32 4
ret double %tmp2
}
instead, producing the integer code. Producing vectors when they
aren't otherwise in the program is dangerous because a lot of other
code treats them carefully and doesn't want to break them down.
OTOH, many things want to break down tasty i448's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63638
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Feb 2009 18:13:00 +0000 (18:13 +0000)]
this produces an undefined result, just check that the alloca is gone
and that sroa doesn't crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63637
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 3 Feb 2009 10:23:33 +0000 (10:23 +0000)]
Fix PR3411. When replacing values, nodes are analyzed
in any old order. Since analyzing a node analyzes its
operands also, this can mean that when we pop a node
off the list of nodes to be analyzed, it may already
have been analyzed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63632
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Feb 2009 10:05:09 +0000 (10:05 +0000)]
APInt'fy SimplifyDemandedVectorElts so it can analyze vectors with more than 64 elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63631
91177308-0d34-0410-b5e6-
96231b3b80d8