Bill Wendling [Fri, 11 Dec 2009 10:43:41 +0000 (10:43 +0000)]
Revert part of r91101 which was causing an infinite loop in the self-hosting
build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91113
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 11 Dec 2009 08:36:17 +0000 (08:36 +0000)]
Add utility method for determining whether a function argument
has the 'nest' attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91109
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 11 Dec 2009 06:02:21 +0000 (06:02 +0000)]
Tests for 91103 and 91104.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91105
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 11 Dec 2009 06:01:48 +0000 (06:01 +0000)]
Add support to 3-addressify 16-bit instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91104
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 11 Dec 2009 06:01:00 +0000 (06:01 +0000)]
Coalesce insert_subreg undef, x first to avoid phase ordering issue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91103
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 11 Dec 2009 03:14:18 +0000 (03:14 +0000)]
Address comments on last patch:
- Loosen the restrictions when checking of it branches to a landing pad.
- Make the loop more efficient by checking the '.insert' return value.
- Do cheaper checks first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91101
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 11 Dec 2009 01:49:14 +0000 (01:49 +0000)]
A machine basic block may end in an unconditional branch, however it may have
more than one successor. Normally, these extra successors are dead. However,
some of them may branch to exception handling landing pads. If we remove those
successors, then the landing pads could go away if all predecessors to it are
removed. Before, it was checking if the direct successor was the landing
pad. But it could be the result of jumping through multiple basic blocks to get
to it. If we were to only check for the existence of an EH_LABEL in the basic
block and not remove successors if it's in there, then it could stop actually
dead basic blocks from being removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91092
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 11 Dec 2009 01:42:04 +0000 (01:42 +0000)]
Rough first pass at compare_and_swap atomic builtins for ARM mode. Work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91090
91177308-0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Fri, 11 Dec 2009 01:04:42 +0000 (01:04 +0000)]
Add qualifiers for calls to member functions in dependent bases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91087
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 10 Dec 2009 23:25:41 +0000 (23:25 +0000)]
If VariableDIe is not created (may be because global was optimzed away) then do not try to use the variable die.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91077
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 10 Dec 2009 21:11:40 +0000 (21:11 +0000)]
Add a test for the fix in revision 91009.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91062
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 10 Dec 2009 20:59:45 +0000 (20:59 +0000)]
It's not safe to coalesce a move where src and dst registers have different subregister indices. e.g.:
%reg16404:1<def> = MOV8rr %reg16412:2<kill>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91061
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Thu, 10 Dec 2009 19:52:22 +0000 (19:52 +0000)]
Remove a broken, unused header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91058
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 10 Dec 2009 19:14:49 +0000 (19:14 +0000)]
Refactor code that finds context for a given die.
Create global variable DIEs after creating subprogram DIEs. This allows function level static variable's to find their context at the time of DIE creation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91055
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 10 Dec 2009 18:35:32 +0000 (18:35 +0000)]
Add instruction encoding for DMB/DSB
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91053
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 10 Dec 2009 18:05:33 +0000 (18:05 +0000)]
Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91051
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 10 Dec 2009 17:48:32 +0000 (17:48 +0000)]
Also attempt trivial coalescing for live intervals that end in a copy.
The coalescer is supposed to clean these up, but when setting up parameters
for a function call, there may be copies to physregs. If the defining
instruction has been LICM'ed far away, the coalescer won't touch it.
The register allocation hint does not always work - when the register
allocator is backtracking, it clears the hints.
This patch is more conservative than r90502, and does not break
483.xalancbmk/i686. It still breaks the PowerPC bootstrap, so it is disabled
by default, and can be enabled with the -trivial-coalesce-ends option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91049
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Thu, 10 Dec 2009 10:01:47 +0000 (10:01 +0000)]
Comparing std::string with NULL is a bad idea, so just check whether its empty.
This code was crashing always with oprofile enabled, since it tried to create a StringRef
out of NULL, which run strlen on NULL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91046
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 10 Dec 2009 00:25:41 +0000 (00:25 +0000)]
Make sure the immediate dominator isn't NULL through iterations
of the loop. We could get to this condition via indirect
branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91009
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Dec 2009 00:11:45 +0000 (00:11 +0000)]
Fix PR5744, a case where we were getting the pointer size instead of the
value size. This only manifested when memdep inprecisely returns clobber,
which is do to a caching issue in the PR5744 testcase. We can 'efficiently
emulate' this by using '-no-aa'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91004
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 10 Dec 2009 00:11:09 +0000 (00:11 +0000)]
Add memory barrier intrinsic support for ARM. Moving towards adding the atomic operations intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91003
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Dec 2009 00:04:46 +0000 (00:04 +0000)]
allow this to build when the #if 0's are enabled. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90999
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 9 Dec 2009 22:55:01 +0000 (22:55 +0000)]
Dereference loopHeader after checking for null rather than before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90990
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 22:24:42 +0000 (22:24 +0000)]
Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90988
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 21:00:30 +0000 (21:00 +0000)]
Optimize splat of a scalar load into a shuffle of a vector load when it's legal. e.g.
vector_shuffle (scalar_to_vector (i32 load (ptr + 4))), undef, <0, 0, 0, 0>
=>
vector_shuffle (v4i32 load ptr), undef, <1, 1, 1, 1>
iff ptr is 16-byte aligned (or can be made into 16-byte aligned).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90984
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 9 Dec 2009 18:48:53 +0000 (18:48 +0000)]
Reuse the Threshold value to size these containers because it's
currently somewhat convenient for them to have the same value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90980
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 9 Dec 2009 18:24:21 +0000 (18:24 +0000)]
Reapply r90858, a cleanup patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90979
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 18:21:46 +0000 (18:21 +0000)]
fix hte last remaining known (by me) phi translation bug. When we reanalyze
clobbers to forward pieces of large stores to small loads, we need to consider
the properly phi translated pointer in the store block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90978
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 18:13:28 +0000 (18:13 +0000)]
change GetStoreValueForLoad to use IRBuilder, which is cleaner and
implicitly constant folds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90977
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 9 Dec 2009 18:05:27 +0000 (18:05 +0000)]
Fix a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90975
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 17:27:45 +0000 (17:27 +0000)]
Add a minor optimization: if we haven't changed the operands of an
add, there is no need to scan the world to find the same add again.
This invalidates the previous testcase, which wasn't wonderful anyway,
because it needed a run of instcombine to permute the use-lists in
just the right way to before GVN was run (so it was really fragile).
Not a big loss.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90973
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 9 Dec 2009 17:26:02 +0000 (17:26 +0000)]
Add note about loadable modules on windows.
Patch by Gregory Petrosyan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90972
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 17:18:49 +0000 (17:18 +0000)]
fix PR5733, a case where we'd replace an add with a lexically identical
binary operator that wasn't an add. In this case, a xor. Whoops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90971
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Wed, 9 Dec 2009 17:18:22 +0000 (17:18 +0000)]
<rdar://problem/
7453528>. Track only physical registers that are valid for the target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90970
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 17:17:26 +0000 (17:17 +0000)]
merge crash-2.ll into crash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90969
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 9 Dec 2009 08:29:32 +0000 (08:29 +0000)]
Silence conversion warning from 64 to 32-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90962
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 07:37:07 +0000 (07:37 +0000)]
change AnalyzeLoadFromClobberingMemInst/AnalyzeLoadFromClobberingStore
to require the load ty/ptr to be passed in, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90960
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 07:34:10 +0000 (07:34 +0000)]
change AnalyzeLoadFromClobberingWrite and clients to pass in type
and pointer instead of the load. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 07:31:04 +0000 (07:31 +0000)]
enhance NonLocalDepEntry to keep the per-block phi translated address
of the query.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90958
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 9 Dec 2009 07:19:48 +0000 (07:19 +0000)]
DeltaAlgorithm: Add a virtual destructor and home.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90957
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 07:08:01 +0000 (07:08 +0000)]
change NonLocalDepEntry from being a typedef for an std::pair to be its
own small class. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90956
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 9 Dec 2009 05:39:12 +0000 (05:39 +0000)]
Added a new "splitting" spiller.
When a call is placed to spill an interval this spiller will first try to
break the interval up into its component values. Single value intervals and
intervals which have already been split (or are the result of previous splits)
are spilled by the default spiller.
Splitting intervals as described above may improve the performance of generated
code in some circumstances. This work is experimental however, and it still
miscompiles many benchmarks. It's not recommended for general use yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90951
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 9 Dec 2009 03:26:33 +0000 (03:26 +0000)]
Remove spurious extern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90937
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 9 Dec 2009 02:58:09 +0000 (02:58 +0000)]
Remove unneeded ';' and a class/struct mismatch (noticed by clang).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90934
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 02:43:05 +0000 (02:43 +0000)]
the code in GVN that tries to forward large loads to small
stores is not phi translating, thus it miscompiles really
crazy testcases. This is from inspection, I haven't seen
this in the wild.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90930
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 02:41:54 +0000 (02:41 +0000)]
add some aborts to #if 0's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90929
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 01:59:31 +0000 (01:59 +0000)]
Switch GVN and memdep to use PHITransAddr, which correctly handles
phi translation of complex expressions like &A[i+1]. This has the
following benefits:
1. The phi translation logic is all contained in its own class with
a strong interface and verification that it is self consistent.
2. The logic is more correct than before. Previously, if intermediate
expressions got PHI translated, we'd miss the update and scan for
the wrong pointers in predecessor blocks. @phi_trans2 is a testcase
for this.
3. We have a lot less code in memdep.
We can handle phi translation across blocks of things like @phi_trans3,
which is pretty insane :).
This patch should fix the miscompiles of 255.vortex, and I tested it
with a bootstrap of llvm-gcc, llvm-test and dejagnu of course.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90926
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 01:53:58 +0000 (01:53 +0000)]
Teach InferPtrAlignment to infer GV+cst alignment and use it to simplify x86 isl lowering code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90925
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 9 Dec 2009 01:46:00 +0000 (01:46 +0000)]
Remove tests that are not suitable anymore. Plus they are not testing the original bugfixes anymore. These tests were inserted to check bug fixes in code that handled debug info intrinsics. These intrinsics are no longer used and now llvm parser simply ignores old .dbg intrinsics from these dead tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90923
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 01:36:00 +0000 (01:36 +0000)]
Move isConsecutiveLoad to SelectionDAG. It's not target dependent and it's primary used by selectdag passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 01:19:16 +0000 (01:19 +0000)]
fix a nasty variable that was shadowing the real CurBB but with the wrong value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90920
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 01:17:24 +0000 (01:17 +0000)]
Infer alignment for non-fixed stack object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90919
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 01:10:37 +0000 (01:10 +0000)]
Add const qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90918
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 9 Dec 2009 01:04:59 +0000 (01:04 +0000)]
Refactor InferAlignment out of DAGCombine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90917
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 00:56:14 +0000 (00:56 +0000)]
fix many input tracking bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90915
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 00:41:28 +0000 (00:41 +0000)]
when opt crashes, print its command line arguments as a pretty stack trace.
Somehow opt was missed when this was added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90912
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 9 Dec 2009 00:28:42 +0000 (00:28 +0000)]
Fix a typo in a comment, and adjust SmallSet and SmallVector sizes,
that Chris noticed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90910
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 00:18:13 +0000 (00:18 +0000)]
fix PHI translation to take the PHI out of the instinputs set and add
the translated value back to it if an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90909
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 00:10:55 +0000 (00:10 +0000)]
instructions defined in CurBB may be intermediate nodes of the computation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90908
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Dec 2009 00:01:00 +0000 (00:01 +0000)]
add dumping and sanity checking support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90906
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 8 Dec 2009 23:59:12 +0000 (23:59 +0000)]
Put a threshold on the number of users PointerMayBeCaptured
examines; fall back to a conservative answer if there are
more. This works around some several compile time problems
resulting from BasicAliasAnalysis calling PointerMayBeCaptured.
The value has been chosen arbitrarily.
This fixes rdar://
7438917 and may partially address PR5708.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90905
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Dec 2009 23:42:51 +0000 (23:42 +0000)]
make sure that PHITransAddr keeps its 'InstInputs' list up to
date when instsimplify kicks in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90901
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 8 Dec 2009 23:21:45 +0000 (23:21 +0000)]
Revert 90858 90875 and 90805 for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90898
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 8 Dec 2009 23:06:22 +0000 (23:06 +0000)]
- Support inline asm 'w' constraint for 128-bit vector types.
- Also support the 'q' NEON registers asm code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90894
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 8 Dec 2009 19:49:30 +0000 (19:49 +0000)]
lit: Prevent crash-on-invalid (when run on directory which has no test suite).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90871
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 8 Dec 2009 19:48:01 +0000 (19:48 +0000)]
Set svn:ignore on tools/clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90870
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 8 Dec 2009 19:47:36 +0000 (19:47 +0000)]
CMake/lit: Add llvm_{unit_,}site_config parameters, and always pass them when running tests from the project files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90869
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 8 Dec 2009 19:34:53 +0000 (19:34 +0000)]
Revert 90789 for now. It caused massive compile time regression. Post-ra scheduler slowed down dramatically with this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90868
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 8 Dec 2009 18:27:03 +0000 (18:27 +0000)]
Some superficial cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90866
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 8 Dec 2009 18:22:03 +0000 (18:22 +0000)]
Clean up dead operands left around after SROA replaces a mem intrinsic.
I'm not aware that this does anything significant on its own, but it's
needed for another patch that I'm working on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90864
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 8 Dec 2009 15:31:31 +0000 (15:31 +0000)]
Cleanup.
There is no need to supply ModuleCU to addType() as a parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90858
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 8 Dec 2009 15:01:35 +0000 (15:01 +0000)]
Do not try to push dead variable's debug info into namespace info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90857
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 8 Dec 2009 13:07:38 +0000 (13:07 +0000)]
Remove useless calls to c_str().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90855
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 8 Dec 2009 10:10:20 +0000 (10:10 +0000)]
Teach GlobalOpt to delete aliases with internal linkage (after
forwarding any uses). GlobalDCE can also do this, but is only
run at -O3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90850
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Dec 2009 06:06:26 +0000 (06:06 +0000)]
fix a typo (and -> add) and fix GetAvailablePHITranslatedSubExpr to not
side-effect the current object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90837
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 8 Dec 2009 05:45:41 +0000 (05:45 +0000)]
Remove unnecessary #include "llvm/LLVMContext.h".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90836
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Dec 2009 05:31:46 +0000 (05:31 +0000)]
whitespace cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90834
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 8 Dec 2009 02:49:54 +0000 (02:49 +0000)]
Removed VC++ compatibility code from DataTypes.h.in.
This header file is not used on VC++ builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90829
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 8 Dec 2009 02:40:09 +0000 (02:40 +0000)]
For VC++, define the ?INT*_C macros only it they are not yet defined.
Some compatibility updates like the Boost TR1 compatibility headers
define them.
Patch contributed by OvermindDL1!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90828
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 8 Dec 2009 01:03:04 +0000 (01:03 +0000)]
Reduce (cmp 0, and_su (foo, bar)) into (bit foo, bar). This saves extra instruction. Patch inspired by Brian Lucas!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90819
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 7 Dec 2009 23:11:03 +0000 (23:11 +0000)]
Watch out for duplicated PHI instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90816
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 7 Dec 2009 23:10:34 +0000 (23:10 +0000)]
Follow up to 90488. Turn a check into an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90815
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Mon, 7 Dec 2009 22:32:38 +0000 (22:32 +0000)]
Fix the OProfileJITEventListener for StringRef being returned from debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90813
91177308-0d34-0410-b5e6-
96231b3b80d8
Victor Hernandez [Mon, 7 Dec 2009 21:54:43 +0000 (21:54 +0000)]
Rename DIFactory::InsertValue() as DIFactory::InsertDbgValueIntrinsic()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90807
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 7 Dec 2009 21:41:32 +0000 (21:41 +0000)]
Add support to emit debug info for c++ style namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90805
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 7 Dec 2009 21:19:33 +0000 (21:19 +0000)]
Delete code accidentally left behind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90804
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Dec 2009 19:52:57 +0000 (19:52 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90793
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Dec 2009 19:45:30 +0000 (19:45 +0000)]
add accessor, improve comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90792
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 7 Dec 2009 19:42:22 +0000 (19:42 +0000)]
Test case for 90787.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90791
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Mon, 7 Dec 2009 19:40:26 +0000 (19:40 +0000)]
Use FileCheck and set nounwind on calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90790
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 7 Dec 2009 19:38:26 +0000 (19:38 +0000)]
Apply Pekka Jääskeläinen's patch to raise the first virtual register
number in order to accomodate targets with more than 1024 registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90789
91177308-0d34-0410-b5e6-
96231b3b80d8
Victor Hernandez [Mon, 7 Dec 2009 19:36:34 +0000 (19:36 +0000)]
Introduce the "@llvm.dbg.value" debug intrinsic.
The semantics of llvm.dbg.value are that starting from where it is executed, an offset into the specified user source variable is specified to get a new value.
An example:
call void @llvm.dbg.value(metadata !{ i32 7 }, i64 0, metadata !2)
Here the user source variable associated with metadata #2 gets the value "i32 7" at offset 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90788
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 7 Dec 2009 19:16:13 +0000 (19:16 +0000)]
Simplify a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90785
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 7 Dec 2009 19:15:57 +0000 (19:15 +0000)]
Throw 'const char*' instead of 'std::string'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90784
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Dec 2009 19:04:49 +0000 (19:04 +0000)]
add support for phi translation and incorpation of new expression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90782
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 7 Dec 2009 19:04:31 +0000 (19:04 +0000)]
Don't enable the post-RA scheduler on x86 except at -O3. In its
current form, it is too expensive in compile time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90781
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Dec 2009 18:36:53 +0000 (18:36 +0000)]
checkpoint of the new PHITransAddr code, still not done and not used by
anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90779
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 7 Dec 2009 18:26:24 +0000 (18:26 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90776
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 7 Dec 2009 18:26:11 +0000 (18:26 +0000)]
Documentation update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90775
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 7 Dec 2009 18:25:54 +0000 (18:25 +0000)]
Deprecate 'unpack_values'.
Use 'forward_values' + 'comma_separated' instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90774
91177308-0d34-0410-b5e6-
96231b3b80d8