Commit Graph

44473 Commits

Author SHA1 Message Date
Tanya Lattner
150c2753a7 Last test for new branch commit mailing list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@68390 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-03 17:04:38 +00:00
Tanya Lattner
7968ca5887 Testing hook for branch commits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@68389 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-03 16:22:07 +00:00
Tanya Lattner
8df02bcc6b test commit for new branch mailing list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@68388 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-03 16:11:12 +00:00
Tanya Lattner
5b6bd3109a 2.5 release notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@65923 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-03 04:36:03 +00:00
Tanya Lattner
9cdda8b4d7 Merge 64066 from mainline.
Document the 'llvm.OP.with.overflow' intrinsics.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@65918 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-03 02:50:57 +00:00
Tanya Lattner
c1824326f4 Remove test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@65136 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20 18:31:46 +00:00
Tanya Lattner
adb576f17c Update tests to work on ppc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@65135 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20 18:31:28 +00:00
Tanya Lattner
59825aefbf Revert 62987. This is already reverted in mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@65125 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20 17:47:45 +00:00
Tanya Lattner
b0ba5215f6 Merge from mainline. Complete 64076 merge from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64861 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-18 00:23:25 +00:00
Tanya Lattner
41b57f5044 Merge 64582 from mainline
Fix PR3522. It's not safe to sink into landing pad BB's.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64790 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 19:33:52 +00:00
Tanya Lattner
3bf2b5ea6f Merge 64579 from mainline.
Fix pr3571: If stride is a value defined by an instruction, make sure it dominates the loop preheader. When IV users are strength reduced, the stride is inserted into the preheader. It could create a use before def situation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64789 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 19:32:45 +00:00
Tanya Lattner
8396e7671f Merge all changes to SimpleRegisterCoalescing to the release.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64785 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 19:21:47 +00:00
Tanya Lattner
9114c43bee Merge 64314 from mainline.
Make a transformation added in 63266 a bit less aggressive.
It was transforming (x&y)==y to (x&y)!=0 in the case where
y is variable and known to have at most one bit set (e.g. z&1).
This is not correct; the expressions are not equivalent when y==0.
I believe this patch salvages what can be salvaged, including
all the cases in bt.ll.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64782 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-17 19:01:36 +00:00
Tanya Lattner
6065313287 Merge r64316 from mainline.
Don't try to set an EFLAGS operand to dead if no instruction was created.
This fixes a bug introduced by r61215.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64524 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 01:14:49 +00:00
Tanya Lattner
4aedbbf806 Merge 64412 from mainline.
Avoid order files for now, as they aren't supported in 3.79.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64523 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 01:07:49 +00:00
Tanya Lattner
3bff2bd4d8 Merge 64367 from mainline.
Fix MingW build: define GTEST_OS_WINDOWS if OS is MingW, but disable
exceptions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64521 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 01:06:08 +00:00
Tanya Lattner
3400fc0434 Merge 64364 from mainline.
Fix a nasty bug (PR3550) where the inline pass could incorrectly mark 
calls with the tail marker when inlining them through an invoke.  Patch,
testcase, and perfect analysis by Jay Foad!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64520 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 01:04:03 +00:00
Tanya Lattner
6a64c0bc1e Merge 64124 frm mainline.
Turns out AnalyzeBranch can modify the mbb being analyzed. This is a nasty
suprise to some callers, e.g. register coalescer. For now, add an parameter
that tells AnalyzeBranch whether it's safe to modify the mbb. A better
solution is out there, but I don't have time to deal with it right now.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64518 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 00:59:47 +00:00
Tanya Lattner
67a8eaa03b Merge 64177 from mainline.
Fix PR 3471, and some cleanups.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64517 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 00:57:30 +00:00
Tanya Lattner
b646395de5 Revert disabling of building unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64516 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 00:50:29 +00:00
Tanya Lattner
05c2c6a56f Merge from mainline.
FIx spelling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64515 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 00:47:00 +00:00
Tanya Lattner
94bfd870ff Merge from mainline.
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/branches/release_25@64514 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-14 00:43:29 +00:00
Tanya Lattner
c1a60e850e Merge from mainline.
Fix PR3486. Fix a bug in code that manually patch physical register live interval after its sub-register is coalesced with a virtual register.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64509 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13 23:53:40 +00:00
Tanya Lattner
93639fb5cd Merge from mainline.
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/branches/release_25@64508 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-13 23:52:54 +00:00
Tanya Lattner
e1d03d99f2 Disable building unittests unless PR3487 can be fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63833 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-05 05:00:51 +00:00
Tanya Lattner
ee9a19c189 Merge from mainline.
First initialize DAG otherwise dwarf writer is used uninitialized.
Duncan spotted this. Thanks!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63793 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04 23:20:50 +00:00
Tanya Lattner
2097f1b25c Merge from mainline.
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/branches/release_25@63792 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04 23:16:46 +00:00
Tanya Lattner
402c6d7e7e Back out r62958 from the release branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63791 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04 23:14:59 +00:00
Tanya Lattner
7f04b369a9 SROA CBE Fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63790 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04 23:12:25 +00:00
Tanya Lattner
a5db86927f Disable support for vicmp/vfcmp from the LLVM 2.5 release branch, like we did for LLVM 2.4. These are slated to be removed (PR3370) and we don't want to have to be backwards compatible with them in the future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63788 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04 23:00:52 +00:00
Tanya Lattner
7c9dac38d6 Merge from mainline.
Revert r63600.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63787 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-04 22:54:57 +00:00
Tanya Lattner
7aa1932f1b Regenerate configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63608 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 05:29:49 +00:00
Tanya Lattner
bd31d17965 Update version number to 2.5.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63607 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 05:28:07 +00:00
Tanya Lattner
682ae9aa34 Create 2.5 branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63604 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 05:07:10 +00:00
Nick Lewycky
dac5c4b10b Update the callgraph when replacing InvokeInst with CallInst when inlining.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63600 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 04:34:40 +00:00
Bill Wendling
d62e06c53b Explicitly pass in debug location information to BuildMI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63599 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 02:29:34 +00:00
Bill Wendling
6a8a0d74cb Pass in something sensible for the debug location information when creating the
initial PHI nodes of the machine function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63598 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 02:20:52 +00:00
Chris Lattner
ba120aa5fa fix a bitcode reader bug where it can't handle extractelement correctly:
the index of the value being extracted is always an i32.  This fixes PR3465


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63597 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 02:11:28 +00:00
Chris Lattner
3d730f7453 Teach ConvertUsesToScalar to handle memset, allowing it to handle
crazy cases like:

struct f {  int A, B, C, D, E, F; };
short test4() {
  struct f A;
  A.A = 1;
  memset(&A.B, 2, 12);
  return A.C;
}



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63596 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 02:01:43 +00:00
Dale Johannesen
dbfd8dbdee Fill in some missing DL propagation in getNode()s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63595 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:55:44 +00:00
Bill Wendling
b288487a8e Use SDL->getCurDebugLoc() instead of unknown loc for landing pads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63594 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:55:42 +00:00
Bill Wendling
ec37e98b3d Explicitly pass in the "unknown" debug location. This is probably not
correct. We need more infrastructure before we can get the DebugLoc info for
these instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63593 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:33:28 +00:00
Dan Gohman
50bd55848e Delete these two tests. They are specific to x86-64, and there's no
reliable way to do this with the current dejagnu infrastructure.
If someone can figure out how to fix these tests so that they test
what they are intended to test without spuriously failing on any
popular platforms, they are invited to reinstate them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63592 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:33:26 +00:00
Bill Wendling
0eb96fd94b Alphabetize includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63591 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:32:22 +00:00
Chris Lattner
7809ecd5b0 rearrange how SRoA handles promotion of allocas to vectors.
With the new world order, it can handle cases where the first
store into the alloca is an element of the vector, instead of
requiring the first analyzed store to have the vector type 
itself.  This allows us to un-xfail 
test/CodeGen/X86/vec_ins_extract.ll.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63590 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:30:09 +00:00
Dan Gohman
a5f81bba4a Move isIdentifiedObject and isNoAliasCall into AliasAnalysis.cpp since
they are useful to analyses other than BasicAliasAnalysis.cpp. Include
the full comment for isIdentifiedObject in the header file. Thanks to
Chris for suggeseting this.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63589 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:28:32 +00:00
Chris Lattner
d91a61ae3d this test produces an undefined value, we don't care
what it is, but we do want the alloca promoted.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63587 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:13:52 +00:00
Bill Wendling
f2ad58d930 Propagate debug loc info during SDNode -> machine instr creation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63585 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 01:02:39 +00:00
Bill Wendling
9bc96a5720 Create DebugLoc information in FastISel. Several temporary methods were
created. Specifically, those BuildMIs which use
"DebugLoc::getUnknownLoc()". I'll remove them soon.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63584 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 00:55:04 +00:00
Dale Johannesen
ff97d4fe81 Propagation in TargetLowering. Includes passing a DL
into SimplifySetCC which gets called elsewhere.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63583 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-03 00:47:48 +00:00