Jim Grosbach [Wed, 4 Nov 2009 23:20:40 +0000 (23:20 +0000)]
Grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86068
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Nov 2009 23:20:12 +0000 (23:20 +0000)]
improve DSE when TargetData is not around, based on work by
Hans Wennborg!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86067
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Nov 2009 23:11:07 +0000 (23:11 +0000)]
Now that the memory leak from McCat/08-main has been fixed (86056), re-enable
aggressive testing of dynamic stack alignment.
Note that this is off by default, and enabled for LLCBETA nightly results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86064
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Nov 2009 22:41:51 +0000 (22:41 +0000)]
If a function has no stack frame at all, dynamic realignment isn't necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86057
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 4 Nov 2009 22:41:00 +0000 (22:41 +0000)]
dynamic stack realignment necessitates scanning the floating point callee-
saved instructions even if no stack adjustment for those saves is needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86056
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Nov 2009 22:06:12 +0000 (22:06 +0000)]
Fix DW_AT_data_member_location for bit-fields. It points to the location of annonymous field that covers respective field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86054
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 4 Nov 2009 21:31:18 +0000 (21:31 +0000)]
Add PowerPC codegen for indirect branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86050
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 4 Nov 2009 21:24:15 +0000 (21:24 +0000)]
Handle empty/tombstone keys for LiveIndex more cleanly. Check for index sanity when constructing index list entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86049
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 4 Nov 2009 20:50:23 +0000 (20:50 +0000)]
A value is only assigned to errno if NumRead equals -1, so do
not reason based on errno if NumRead has a different value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86046
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 4 Nov 2009 20:04:11 +0000 (20:04 +0000)]
Fix broken test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86045
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 4 Nov 2009 19:57:50 +0000 (19:57 +0000)]
Add some options to disable various code gen optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86044
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 4 Nov 2009 19:37:40 +0000 (19:37 +0000)]
Array element size does not match array size but array is not a bitfield.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86043
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 4 Nov 2009 19:25:34 +0000 (19:25 +0000)]
Add test for ARM indirectbr codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86042
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 4 Nov 2009 19:24:37 +0000 (19:24 +0000)]
Print out an informative comment for KILL instructions.
The KILL pseudo-instruction may survive to the asm printer pass, just like the IMPLICIT_DEF. Print the KILL as a comment instead of just leaving a blank line in the output.
With -asm-verbose=0, a blank line is printed, like IMPLICIT?DEF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86041
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Nov 2009 18:57:42 +0000 (18:57 +0000)]
Fix an iterator invalidation bug that happens when a hashtable
resizes in IPSCCP. This fixes PR5394.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86036
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Nov 2009 08:36:50 +0000 (08:36 +0000)]
Look for llvm-gcc under /Developer/usr/bin first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86023
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Nov 2009 08:33:14 +0000 (08:33 +0000)]
RangeIsDefinedByCopyFromReg() should check for subreg_to_reg, insert_subreg,
and extract_subreg as a "copy" that defines a valno.
Also fixes a typo. These two issues prevent a simple subreg coalescing from
happening before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86022
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Nov 2009 08:05:20 +0000 (08:05 +0000)]
move two functions up higher in the file. Delete a useless argument
to EmitGEPOffset.
Implement some new transforms for optimizing
subtracts of two pointer to ints into the same vector. This happens
for C++ iterator idioms for example, stringmap takes a const char*
that points to the start and end of a string. Once inlined, we want
the pointer difference to turn back into a length.
This is rdar://
7362831.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86021
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Nov 2009 07:57:05 +0000 (07:57 +0000)]
filecheckize this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86020
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Nov 2009 07:38:48 +0000 (07:38 +0000)]
The .n suffix must go after the predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86019
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 4 Nov 2009 06:15:28 +0000 (06:15 +0000)]
The magic for our current brand of .bc files is BC. For older ones it was llvc.
When was it ever "llvm"?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86009
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 4 Nov 2009 05:00:12 +0000 (05:00 +0000)]
make IRBuilder zap "X|0" and "X&-1" when building IR, this happens
during bitfield codegen and slows down -O0 compile times by making
useless IR. rdar://
7362516
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86006
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 4 Nov 2009 04:32:50 +0000 (04:32 +0000)]
configure: Add --with-optimize-option, for setting the default value of
OPTIMIZE_OPTION.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86005
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Nov 2009 03:08:57 +0000 (03:08 +0000)]
Silence implicit conversion warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86000
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 4 Nov 2009 01:52:40 +0000 (01:52 +0000)]
Another spurious friend declaration removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85997
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 4 Nov 2009 01:34:22 +0000 (01:34 +0000)]
Removed an unnecessary friend declaration and some crufty comments from IndexListEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85995
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 4 Nov 2009 01:32:06 +0000 (01:32 +0000)]
Fix CMake makefiles
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85994
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Nov 2009 00:42:33 +0000 (00:42 +0000)]
Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85986
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 4 Nov 2009 00:00:39 +0000 (00:00 +0000)]
Use ldr.n to workaround a darwin assembler bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85980
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Tue, 3 Nov 2009 23:52:08 +0000 (23:52 +0000)]
The Indexes Patch.
This introduces a new pass, SlotIndexes, which is responsible for numbering
instructions for register allocation (and other clients). SlotIndexes numbering
is designed to match the existing scheme, so this patch should not cause any
changes in the generated code.
For consistency, and to avoid naming confusion, LiveIndex has been renamed
SlotIndex.
The processImplicitDefs method of the LiveIntervals analysis has been moved
into its own pass so that it can be run prior to SlotIndexes. This was
necessary to match the existing numbering scheme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85979
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 3 Nov 2009 23:44:31 +0000 (23:44 +0000)]
Fix branch folding bug for indirect branches: for a block containing only
an unconditional branch (possibly from tail merging), this code is
trying to redirect all of its predecessors to go directly to the branch
target, but that isn't feasible for indirect branches. The other
predecessors (that don't end with indirect branches) could theoretically
still be handled, but that is not easily done right now.
The AnalyzeBranch interface doesn't currently let us distinguish jump table
branches from indirect branches, and this code is currently handling
jump tables. To avoid punting on address-taken blocks, we would have to give
up handling jump tables. That seems like a bad tradeoff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85975
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 23:40:48 +0000 (23:40 +0000)]
reimplement multiple return value handling in IPSCCP, making it
more aggressive an correct. This survives building llvm in 64-bit
mode with optimizations and the built llvm passes make check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85973
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 23:13:34 +0000 (23:13 +0000)]
Fix t2Int_eh_sjlj_setjmp. Immediate form of orr is a 32-bit instruction. So it should be 22 bytes instead of 20 bytes long.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85965
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 3 Nov 2009 22:50:10 +0000 (22:50 +0000)]
Use llvm-gcc on newer Darwins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85963
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 3 Nov 2009 22:07:07 +0000 (22:07 +0000)]
set svn:ignore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85953
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 21:59:33 +0000 (21:59 +0000)]
fconsts / fconstd immediate should be proceeded with #.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85952
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 21:50:09 +0000 (21:50 +0000)]
fix broken link
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85951
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 21:40:02 +0000 (21:40 +0000)]
Re-apply 85799. It turns out my code isn't buggy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85947
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 21:26:26 +0000 (21:26 +0000)]
fix test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85946
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 21:25:50 +0000 (21:25 +0000)]
merge a test into ipsccp-basic. running llvm-ld to get one pass is... bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85945
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 3 Nov 2009 20:57:50 +0000 (20:57 +0000)]
Do a scheduling pass ignoring anti-dependencies to identify candidate registers that should be renamed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85939
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 20:52:57 +0000 (20:52 +0000)]
finish half thunk thought
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85937
91177308-0d34-0410-b5e6-
96231b3b80d8
Victor Hernandez [Tue, 3 Nov 2009 20:39:35 +0000 (20:39 +0000)]
Changes requested (avoid getFunction(), avoid Type creation via isVoidTy(), and avoid redundant isFreeCall cases) in feedback to r85176
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85936
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Tue, 3 Nov 2009 20:15:00 +0000 (20:15 +0000)]
<rdar://problem/
7352605>. When building schedule graph use mayAlias information to avoid chaining loads/stores of spill slots with non-aliased memory ops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85934
91177308-0d34-0410-b5e6-
96231b3b80d8
Victor Hernandez [Tue, 3 Nov 2009 20:02:35 +0000 (20:02 +0000)]
Changes (* location in pointer variables, avoiding include, and using APInt::getLimitedValue) based on feedback to r85814
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85933
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 19:35:13 +0000 (19:35 +0000)]
turn IPSCCP back on by default, try #3 or 4? Woo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85929
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 19:24:51 +0000 (19:24 +0000)]
fix an IPSCCP bug I introduced when I changed IPSCCP to start working on
functions that don't have local linkage. Basically, we need to be more
careful about propagating argument information to functions whose results
we aren't tracking. This fixes a miscompilation of
LLVMCConfigurationEmitter.cpp when built with an llvm-gcc that has ipsccp
enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85923
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 3 Nov 2009 19:10:22 +0000 (19:10 +0000)]
Make this code more robust by not thinking we are making progress
if zero bytes were read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85922
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 3 Nov 2009 19:06:07 +0000 (19:06 +0000)]
Parse debug info attached with insertvalue and extractvalue instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85921
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 3 Nov 2009 18:46:11 +0000 (18:46 +0000)]
Move subtarget check upper for NEON reg-reg fixup pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85914
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 18:30:31 +0000 (18:30 +0000)]
mark some constant global const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85910
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 3 Nov 2009 18:30:27 +0000 (18:30 +0000)]
Ignore unnamed variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85909
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 17:54:12 +0000 (17:54 +0000)]
xfail this test since daniel turned off ipsccp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85907
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 17:03:02 +0000 (17:03 +0000)]
testcase for r85903
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85906
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 16:50:11 +0000 (16:50 +0000)]
fix a subtle bug I introduced when refactoring SCCP. Testcase
to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85903
91177308-0d34-0410-b5e6-
96231b3b80d8
Kenneth Uildriks [Tue, 3 Nov 2009 15:29:06 +0000 (15:29 +0000)]
Make opt default to not adding a target data string and update tests that depend on target data to supply it within the test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85900
91177308-0d34-0410-b5e6-
96231b3b80d8
Kenneth Uildriks [Tue, 3 Nov 2009 15:25:20 +0000 (15:25 +0000)]
Added a comment to a function that had none
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85899
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 3 Nov 2009 12:52:50 +0000 (12:52 +0000)]
Eliminate some temporaries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85896
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 3 Nov 2009 09:40:08 +0000 (09:40 +0000)]
Run the functionattrs pass after the inliner, and not before.
This makes both logical sense (see below) and increases the
number of functions marked readnone/readonly by about 1-2%
in practice. The number of functions marked nocapture goes
up by about 5-10%. The reason it makes sense is shown by
the following example: if you run -functionattrs -inline on
it, then no attributes are assigned. But if you instead run
-inline -functionattrs then @f is marked readnone because the
simplifications produced by the inliner eliminate the store.
@x = external global i32
define void @w(i1 %b) {
br i1 %b, label %write, label %return
write:
store i32 1, i32 *@x
br label %return
return:
ret void
}
define void @f() {
call void @w(i1 0)
ret void
}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85893
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 3 Nov 2009 07:49:22 +0000 (07:49 +0000)]
Speculatively redisable IPSCCP, I think its still breaking things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85884
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 3 Nov 2009 07:26:38 +0000 (07:26 +0000)]
lit: Update Clang's test style to use XFAIL: and XTARGET: lines that match
LLVM's tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85882
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 07:08:08 +0000 (07:08 +0000)]
Trim unnecessary include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85878
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 3 Nov 2009 06:29:56 +0000 (06:29 +0000)]
For Thumb indirect branches, use "mov pc, reg" which does not switch
between ARM/Thumb modes and does not require the low bit of the target
address to be set for Thumb.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85874
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeffrey Yasskin [Tue, 3 Nov 2009 06:29:36 +0000 (06:29 +0000)]
Fix a funky "declared with greater visibility than the type of its field"
warning from gcc by removing VISIBILITY_HIDDEN attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85873
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 05:52:54 +0000 (05:52 +0000)]
Fix PR5367. QPR_8 is the super regclass of DPR_8 and SPR_8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85871
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 05:51:39 +0000 (05:51 +0000)]
Clean up copyRegToReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85870
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 3 Nov 2009 05:50:57 +0000 (05:50 +0000)]
Add QPR_8 as a superreg class of SPR_8 and DPR_8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85869
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 05:35:19 +0000 (05:35 +0000)]
remove unneeded checks of isFreeCall
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85866
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 05:34:51 +0000 (05:34 +0000)]
remove a check of isFreeCall: the argument to free is already nocapture so the generic call code works fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85865
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 05:33:46 +0000 (05:33 +0000)]
remove a isFreeCall check: it is a callinst that can write to memory already.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85863
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 3 Nov 2009 04:14:12 +0000 (04:14 +0000)]
Update CMake file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85861
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 3 Nov 2009 04:06:58 +0000 (04:06 +0000)]
Support updating 'llvm_add_target' lists as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85860
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 3 Nov 2009 04:01:53 +0000 (04:01 +0000)]
Alphabetize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85859
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 3 Nov 2009 03:42:51 +0000 (03:42 +0000)]
turn IPSCCP back on now that the iterator invalidation bug is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85858
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 3 Nov 2009 03:30:51 +0000 (03:30 +0000)]
Add a couple more target nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85857
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 3 Nov 2009 02:19:31 +0000 (02:19 +0000)]
Declare sin & cos as readonly so they match the code in SelectionDAGBuild
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85853
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 3 Nov 2009 01:04:26 +0000 (01:04 +0000)]
Turn neon reg-reg moves fixup code into separate pass. This should reduce the compile time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85850
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 3 Nov 2009 00:37:36 +0000 (00:37 +0000)]
Temporary xfail until PR5367 will be resolved
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85848
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 3 Nov 2009 00:24:48 +0000 (00:24 +0000)]
Revert r85049, it is causing PR5367
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85847
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 3 Nov 2009 00:02:05 +0000 (00:02 +0000)]
Revert previous change to a comment. The BlockAddresses go in the
constant pool so they don't get wrapped separately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85844
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 23:25:39 +0000 (23:25 +0000)]
fix a nasty iterator invalidation bug from my conversion from
std::map to DenseMap, exposed on release llvm-gcc bootstrap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85840
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 2 Nov 2009 21:49:14 +0000 (21:49 +0000)]
Revert 85799 for now. It might be breaking llvm-gcc driver.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85827
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 2 Nov 2009 20:59:23 +0000 (20:59 +0000)]
Put BlockAddresses into ARM constant pools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85824
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Mon, 2 Nov 2009 20:14:39 +0000 (20:14 +0000)]
Fix ARMAsmParser::ParseMemoryOffsetReg() where the parameter OffsetRegNum should
have been passed as a reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85823
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 19:31:10 +0000 (19:31 +0000)]
revert r8579[56], which are causing unhappiness in buildbot land.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85818
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Mon, 2 Nov 2009 19:11:03 +0000 (19:11 +0000)]
CMake: Report an error if there is an unknown .cpp file in a source
directory.
This is useful in case someone who works with the config&make build
system forgot to add a file to its CMakeLists.txt. Instead of
obtaining undefined references at link time, cmake will complain at
configure time on the first build after a svn update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85817
91177308-0d34-0410-b5e6-
96231b3b80d8
Victor Hernandez [Mon, 2 Nov 2009 18:51:28 +0000 (18:51 +0000)]
Set bit instead of calling pow() to compute 2 << n
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85814
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 18:28:45 +0000 (18:28 +0000)]
typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85812
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 18:27:22 +0000 (18:27 +0000)]
merge 2008-03-10-sret.ll into ipsccp-basic.ll, and upgrade its syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85811
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 18:22:51 +0000 (18:22 +0000)]
disable IPSCCP support for multiple return values, it is buggy, so just
disable it until I can fix it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85810
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 2 Nov 2009 17:28:36 +0000 (17:28 +0000)]
Fix schedule model for BFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85809
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 2 Nov 2009 17:10:37 +0000 (17:10 +0000)]
Hyphenate some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85808
91177308-0d34-0410-b5e6-
96231b3b80d8
David Goodwin [Mon, 2 Nov 2009 17:06:28 +0000 (17:06 +0000)]
Chain dependencies used to enforce memory order should have latency of 0 (except for true dependency of Store followed by aliased Load... we estimate that case with a single cycle of latency assuming the hardware will bypass)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85807
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 2 Nov 2009 16:59:06 +0000 (16:59 +0000)]
Add support for BlockAddress values in ARM constant pools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85806
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 2 Nov 2009 16:58:31 +0000 (16:58 +0000)]
Prune unnecessary include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85805
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 2 Nov 2009 08:09:49 +0000 (08:09 +0000)]
Initilize the machine LICM CSE map upon the first time an instruction is hoisted to
the loop preheader. Add instructions which are already in the preheader block that
may be common expressions of those that are hoisted out. These does get a few more
instructions CSE'ed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85799
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 2 Nov 2009 07:58:25 +0000 (07:58 +0000)]
These are done / no longer care.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85798
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 2 Nov 2009 07:51:19 +0000 (07:51 +0000)]
Add an entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85797
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 07:34:29 +0000 (07:34 +0000)]
now that ip sccp *really* subsumes ipcp, remove ipcp again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85796
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 2 Nov 2009 07:33:59 +0000 (07:33 +0000)]
improve IPSCCP to be able to propagate the result of "!mayBeOverridden"
function to calls of that function, regardless of whether it has local
linkage or has its address taken. Not escaping should only affect
whether we make an aggressive assumption about the arguments to a
function, not whether we can track the result of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85795
91177308-0d34-0410-b5e6-
96231b3b80d8