Dale Johannesen [Fri, 2 Apr 2010 01:38:09 +0000 (01:38 +0000)]
Teach AnalyzeBranch, RemoveBranch and the branch
folder to be tolerant of debug info following the
branch(es) at the end of a block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100168
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Fri, 2 Apr 2010 01:31:24 +0000 (01:31 +0000)]
Disambiguate conditional expression for newer GCCs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100167
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 2 Apr 2010 01:26:13 +0000 (01:26 +0000)]
Remove this initializer so that the optimizer doesn't convert
unaligned loads into aligned loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100166
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 2 Apr 2010 01:24:08 +0000 (01:24 +0000)]
Update this test for the new preferred alignment heuristics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100165
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 2 Apr 2010 01:22:49 +0000 (01:22 +0000)]
Revert 100158 in case it is causing some of the buildbot problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100164
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Fri, 2 Apr 2010 00:53:42 +0000 (00:53 +0000)]
Updated the install location for EnhancedDisassembly
on Mac OS X to use @rpath rather than an absolute
path. Also allowed the version to be set using an
environment variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100163
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 2 Apr 2010 00:46:07 +0000 (00:46 +0000)]
Change variables which are exactly 16 bytes to be 16-byte-aligned too.
This fixes test/Transforms/GlobalOpt/gv-align.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100161
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 2 Apr 2010 00:14:16 +0000 (00:14 +0000)]
Make globalopt refine global variable alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100160
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 2 Apr 2010 00:10:41 +0000 (00:10 +0000)]
Check for terminating conditions before adding PHIs to the worklists.
This is more efficient than adding them to the worklist and then ignoring them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100158
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Fri, 2 Apr 2010 00:08:26 +0000 (00:08 +0000)]
remove these merge-tracking properties as they
might interfere with merges to other branches (as Dan pointed out)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100157
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 2 Apr 2010 00:03:51 +0000 (00:03 +0000)]
If the bitcode reader input stream isn't a multiple of 4 bytes, it's more
likely not a bitcode file at all, rather than being a bitcode file which
is truncated. Check for this case and issue a more relevant error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100156
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 1 Apr 2010 23:06:38 +0000 (23:06 +0000)]
Remove trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100148
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 1 Apr 2010 23:05:58 +0000 (23:05 +0000)]
Rewrite another SSAUpdater function to avoid recursion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100147
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 1 Apr 2010 22:54:42 +0000 (22:54 +0000)]
Revert r100143.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100146
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 1 Apr 2010 22:47:29 +0000 (22:47 +0000)]
Revert r100117.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100145
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 1 Apr 2010 22:43:57 +0000 (22:43 +0000)]
Add some switches helpful for debugging:
-print-before=<Pass Name>
Dump IR before running pass <Pass Name>.
-print-before-all
Dump IR before running each pass.
-print-after-all
Dump IR after running each pass.
These are helpful when tracking down a miscompilation. It is easy to
get IR dumps and do diffs on them, etc.
To make this work well, add a new getPrinterPass API to Pass so that
each kind of pass (ModulePass, FunctionPass, etc.) can create a Pass
suitable for dumping out the kind of object the Pass works on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100143
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 20:27:45 +0000 (20:27 +0000)]
In 64-bit mode, use i64 to lower memcpy / memset instead of f64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100137
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 1 Apr 2010 20:22:44 +0000 (20:22 +0000)]
Do not eagerly record known previous location. DBG_VALUE may not cause a new label due to one or other reason.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100134
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 20:13:28 +0000 (20:13 +0000)]
Skip checking preferred alignment of GVs defined in other translation units all together.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100133
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 20:10:42 +0000 (20:10 +0000)]
Add comments about DstAlign and SrcAlign.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100132
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 1 Apr 2010 20:04:30 +0000 (20:04 +0000)]
Change another SSAUpdater function to avoid recursion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100131
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 1 Apr 2010 19:53:48 +0000 (19:53 +0000)]
Simplify the code to check for existing PHIs, now that it is only used in
one place. This removes the template function added in svn 94690.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100130
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 1 Apr 2010 18:46:59 +0000 (18:46 +0000)]
The SSAUpdater should avoid recursive traversals of the CFG, since that may
blow out the stack for really big functions. Start by fixing an easy case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100126
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 18:19:11 +0000 (18:19 +0000)]
- Avoid using floating point stores to implement memset unless the value is zero.
- Do not try to infer GV alignment unless its type is sized. It's not possible to infer alignment if it has opaque type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100118
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 1 Apr 2010 17:32:01 +0000 (17:32 +0000)]
Skip instructions until new scope is seen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100117
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 1 Apr 2010 17:16:48 +0000 (17:16 +0000)]
Cosmetic changes.
Update comment, rename a local variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100116
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 1 Apr 2010 14:39:55 +0000 (14:39 +0000)]
Remove accidental include and add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100107
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 1 Apr 2010 14:35:22 +0000 (14:35 +0000)]
Various improvements to MemoryBuffer::getFile:
- Use a RAII object to close the FD.
- Use sys::StrError instead of thread-unsafe strerror calls.
- Recover gracefully if read returns zero. This works around an issue on
DragonFlyBSD where /dev/null has an st_size of 136 but we can't read 136 bytes
from it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100106
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 08:25:26 +0000 (08:25 +0000)]
Add -mcpu to memcpy / memset tests to ensure they behave the same on all hosts / targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100101
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Thu, 1 Apr 2010 08:21:08 +0000 (08:21 +0000)]
Introduce ImmutableCallSite, useful for contexts where no mutation
is necessary. Inherits from new templated baseclass CallSiteBase<>
which is highly customizable. Base CallSite on it too, in a configuration
that allows full mutation.
Adapt some call sites in analyses to employ ImmutableCallSite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100100
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 1 Apr 2010 07:34:00 +0000 (07:34 +0000)]
Clean up this file a little, no functionality change. This is a subset of my
patch back in r94322.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100097
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 06:31:45 +0000 (06:31 +0000)]
switch IRBuilder to use NewDebugLoc for locations instead
of raw mdnodes. This allows frontends to specify debug
locations without ever creating an MDNode for the DILocation.
This requires a corresponding clang/llvm-gcc change which
I'll try to commit as simultaneously as possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100095
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 06:29:56 +0000 (06:29 +0000)]
add comments, don't require inlined-at to be specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100092
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 06:04:33 +0000 (06:04 +0000)]
Fix sdisel memcpy, memset, memmove lowering:
1. Makes it possible to lower with floating point loads and stores.
2. Avoid unaligned loads / stores unless it's fast.
3. Fix some memcpy lowering logic bug related to when to optimize a
load from constant string into a constant.
4. Adjust x86 memcpy lowering threshold to make it more sane.
5. Fix x86 target hook so it uses vector and floating point memory
ops more effectively.
rdar://
7774704
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100090
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 1 Apr 2010 05:58:17 +0000 (05:58 +0000)]
Nehalem unaligned memory access is fast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100089
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 05:23:13 +0000 (05:23 +0000)]
Switch the representation of the location in instruction from
being a TrackingVH<MDNode> to a NewDebugLoc, shrinking
sizeof(Instruction) a lot, and providing clients the ability
to deal with locations in terms of NewDebugLoc instead of
having to deal with Metadata. This is still fully compatible
with all clients that *do* use MDNodes for everything of
course.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100088
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 05:20:21 +0000 (05:20 +0000)]
include header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100087
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 05:14:45 +0000 (05:14 +0000)]
rewrite handling of forward ref'd instruction metadata
to used deferred resolution instead of creating a temporary
node + rauw. There is no reason to create the temporary
mdnode, then do rauw, then destroy it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100086
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 05:13:10 +0000 (05:13 +0000)]
change this from using '!dbg' to using '!dbgx'. The
MD used here isn't valid for !dbg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100085
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 05:12:07 +0000 (05:12 +0000)]
fix a bug in DebugRecVH::deleted/allUsesReplacedWith. If an
entry in the Scope+InlinedAt drops to a non-canonical form,
we need to reset the idx member of both VH's to 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100084
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 04:53:22 +0000 (04:53 +0000)]
no really, we don't need to copy strings around in the accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100083
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 04:51:13 +0000 (04:51 +0000)]
eliminate a temporary smallvector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100082
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 03:55:42 +0000 (03:55 +0000)]
add a method to decode a DILocation into a NewDebugLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100081
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 1 Apr 2010 03:05:45 +0000 (03:05 +0000)]
Add aeskeygenassist intrinsic and rename all of the aes intrinsics to
aes instead of sse4.2. Add a brief todo for a subtarget flag and rework
the aeskeygenassist instruction to more closely match the docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100078
91177308-0d34-0410-b5e6-
96231b3b80d8
Erick Tryzelaar [Thu, 1 Apr 2010 01:53:24 +0000 (01:53 +0000)]
There are no known O'Caml problems at the moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100076
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 01:02:19 +0000 (01:02 +0000)]
update cmakefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100074
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 1 Apr 2010 00:37:44 +0000 (00:37 +0000)]
Add a new "NewDebugLoc" class which will eventually replace DebugLoc,
and will replace the 'DbgInfo' member in Instruction.
The benefit of NewDebugLoc is that it is compact (8 bytes vs 12/24
bytes for the DbgInfo member in Instruction on a 32/64 bit system),
it means that we will end up not having to allocate MDNodes to
represent the "DILocations" in common cases of -O0 -g, and it is
much more efficient to get things out of than the MDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100072
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 1 Apr 2010 00:13:43 +0000 (00:13 +0000)]
vml[as] are slow on 1136jf-s also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100066
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 1 Apr 2010 00:00:43 +0000 (00:00 +0000)]
Reapply r100056. It doesn't look like it's the one that's causing a failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100065
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 31 Mar 2010 23:51:55 +0000 (23:51 +0000)]
Pass -m32/-m64 to assembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100064
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 31 Mar 2010 23:26:26 +0000 (23:26 +0000)]
Revert r100056. It was causing a failure on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100062
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 31 Mar 2010 23:08:46 +0000 (23:08 +0000)]
Reverting 100048; it broke two Frontend debug info tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100058
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 31 Mar 2010 22:54:38 +0000 (22:54 +0000)]
Rewrite CorrectExtraCFGEdges() to make it more understandable.
* Set the "DestA" and "DestB" according to how they're understood by the
method. I.e., if one or both of them should point to the "fall through" block,
then point to the fall through block.
* Improve the loop that removes superfluous edges to be more understandable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100056
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 31 Mar 2010 21:38:43 +0000 (21:38 +0000)]
Add a redundant PHI testcase for SSAUpdater to go with svn r100047.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100050
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Wed, 31 Mar 2010 21:10:54 +0000 (21:10 +0000)]
Debug info can now properly represent functions inside classes inside other functions. Partial fix for Radar
7424645.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100048
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 31 Mar 2010 20:51:00 +0000 (20:51 +0000)]
Rewrite part of the SSAUpdater to be more careful about inserting redundant
PHIs. The previous algorithm was unable to reliably detect when existing
PHIs in a cycle can be reused. I'm still working on reducing a testcase.
Radar
7711900.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100047
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 31 Mar 2010 20:37:15 +0000 (20:37 +0000)]
Fix a nasty dangling-pointer heisenbug that could
generate wrong code pretty much anywhere AFAICT.
A case that hits the bug reproducibly is impossible,
but the situation was like this:
Addr = ...
Store -> Addr
Addr2 = GEP , 0, 0
Store -> Addr2
Handling the first store, the code changed replaced Addr
with a sunkaddr and deleted Addr, but not its table
entry. Code in OptimizedBlock replaced Addr2 with a
bitcast; if that happened to reuse the memory of Addr,
the old table entry was erroneously found when handling
the second store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100044
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Wed, 31 Mar 2010 20:37:13 +0000 (20:37 +0000)]
testcase for r99914, provided by baldrick!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100043
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 20:32:51 +0000 (20:32 +0000)]
reduce indentation, minor cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100042
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 31 Mar 2010 20:15:45 +0000 (20:15 +0000)]
Reduce string trashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100038
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 31 Mar 2010 20:05:12 +0000 (20:05 +0000)]
Use spaces, not tabs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100037
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 31 Mar 2010 19:34:01 +0000 (19:34 +0000)]
DwarfDebug: Allocate DIEValues with a BumpPtrAllocator. Most of them are
POD-like anyway, so we don't even care about calling their d'tors (DIEBlock
being the exception).
~6% less mallocs and ~1% compile time improvement on clang -O0 -g oggenc.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100035
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 31 Mar 2010 19:14:05 +0000 (19:14 +0000)]
Add a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100034
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 31 Mar 2010 18:48:58 +0000 (18:48 +0000)]
Comment the changes for r98218 and friends inside the source code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100033
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 31 Mar 2010 18:48:43 +0000 (18:48 +0000)]
lit: Make sure to close any files we open as part of redirection.
PR6753.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100032
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 31 Mar 2010 18:47:10 +0000 (18:47 +0000)]
Comment the changes for r98218 and friends inside the source code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100031
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 31 Mar 2010 17:13:16 +0000 (17:13 +0000)]
Fix PR6750. Don't try to merge a DomainValue with itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100016
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 31 Mar 2010 16:06:22 +0000 (16:06 +0000)]
s/getNameStr/getName/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100011
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 31 Mar 2010 16:04:26 +0000 (16:04 +0000)]
Bump SmallString size a bit to avoid malloc trashing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100010
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Wed, 31 Mar 2010 12:07:16 +0000 (12:07 +0000)]
AddSignalHandler was not releasing the critical section on win32.
Patch from Gianluigi Tiesi!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100003
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 31 Mar 2010 07:50:17 +0000 (07:50 +0000)]
Small fixes to this documentation. Remove mention of uint/int type, fix typo
in 'number'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100001
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 06:09:04 +0000 (06:09 +0000)]
reduce indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99999
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 06:06:37 +0000 (06:06 +0000)]
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99998
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 05:53:47 +0000 (05:53 +0000)]
microoptimize this hot method, also making it more
consistent with other similar ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99997
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 05:42:48 +0000 (05:42 +0000)]
MI != 0 is checked in the assert right above this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99995
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 05:39:57 +0000 (05:39 +0000)]
use the isDebugValue() predicate and pop_back_val()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99993
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 05:36:29 +0000 (05:36 +0000)]
assert is a function-like macro, not a control flow operator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99992
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 31 Mar 2010 05:27:33 +0000 (05:27 +0000)]
Correct comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99991
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 05:15:22 +0000 (05:15 +0000)]
reduce indentation, fit in 80 cols and various other cosmetic cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99989
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 04:26:23 +0000 (04:26 +0000)]
fix file header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99987
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 04:24:50 +0000 (04:24 +0000)]
use the optimized debug info apis in sdisel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99986
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 04:09:11 +0000 (04:09 +0000)]
make irbuilder use the new optimized debug info accessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99984
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 31 Mar 2010 03:34:40 +0000 (03:34 +0000)]
add new apis for getting/setting !dbg metadata on
instructions. In addition to being a convenience,
they are faster than the old apis, particularly when
not going from an MDKindID like people should be
doing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99982
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 31 Mar 2010 00:40:13 +0000 (00:40 +0000)]
Replace V_SET0 with variants for each SSE execution domain.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99975
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 31 Mar 2010 00:40:08 +0000 (00:40 +0000)]
Fix typo. Thank you, valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99974
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 23:12:48 +0000 (23:12 +0000)]
Not all platforms start symbols with _
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Mar 2010 23:03:27 +0000 (23:03 +0000)]
Fix a major source of compile-time slowness at -O0 -g by optimizing
the storage of !dbg metadata kinds in the instruction themselves.
The on-the-side hash table works great for metadata that not-all
instructions get, or for metadata that only exists when optimizing.
But when compile-time is everything, it isn't great.
I'm not super thrilled with the fact that this plops a TrackingVH in
Instruction, because it grows it by 3 words. I'm investigating
alternatives, but this should be a step in the right direction in any
case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99957
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 22:47:00 +0000 (22:47 +0000)]
Enable -sse-domain-fix by default. Now with tests!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99954
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 22:46:55 +0000 (22:46 +0000)]
V_SETALLONES is an integer instruction.
Since it is just a pxor in disguise, we should probably expand it to a full
polymorphic triple.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99953
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 22:46:53 +0000 (22:46 +0000)]
Renumber SSE execution domains for better code size.
SSEDomainFix will collapse to the domain with the lower number when it has a
choice. The SSEPackedSingle domain often has smaller instructions, so prefer
that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99952
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 30 Mar 2010 22:27:04 +0000 (22:27 +0000)]
Revert Mon Ping's change 99928, since it broke all the llvm-gcc buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99948
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 30 Mar 2010 22:09:52 +0000 (22:09 +0000)]
Ignore invalid metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99938
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 21:36:32 +0000 (21:36 +0000)]
Revert "Enable -sse-domain-fix by default. What could possibly go wrong?"
Not running 'make check-all' before committing is a bad idea.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99933
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 21:09:31 +0000 (21:09 +0000)]
Enable -sse-domain-fix by default. What could possibly go wrong?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99931
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Tue, 30 Mar 2010 20:55:56 +0000 (20:55 +0000)]
Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset,
e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
A update of langref will occur in a subsequent checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99928
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Mar 2010 20:48:48 +0000 (20:48 +0000)]
move some method definitions to files that make sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99927
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 30 Mar 2010 20:16:45 +0000 (20:16 +0000)]
Introduce SpecificBumpPtrAllocator, a wrapper for BumpPtrAllocator which allows
only a single type of object to be allocated. Use it to make VNInfo destruction
typesafe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99919
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Tue, 30 Mar 2010 20:15:13 +0000 (20:15 +0000)]
Typo noticed by Duncan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99918
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 30 Mar 2010 20:04:57 +0000 (20:04 +0000)]
Fix a grammaro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99917
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 30 Mar 2010 20:04:01 +0000 (20:04 +0000)]
Add cross-block inference to SSEDomainFix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99916
91177308-0d34-0410-b5e6-
96231b3b80d8