oota-llvm.git
14 years agoadd a failing testcase.
Chris Lattner [Thu, 3 Dec 2009 01:46:18 +0000 (01:46 +0000)]
add a failing testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90380 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEmit method definition DIE at module level (even for methods with inlined functino...
Devang Patel [Thu, 3 Dec 2009 01:25:38 +0000 (01:25 +0000)]
Emit method definition DIE at module level (even for methods with inlined functino body at soure level) so that the debugger can invoke it. This fixes many test failures in gdb test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90375 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFurther improvements: refactoring code that does the same thing into one
Bill Wendling [Thu, 3 Dec 2009 01:15:46 +0000 (01:15 +0000)]
Further improvements: refactoring code that does the same thing into one
function, converting "dyn_cast" to "cast", asserting the correct things, and
other general cleanups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90371 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoyay for case insensitive file systems (?)
Chris Lattner [Thu, 3 Dec 2009 01:10:05 +0000 (01:10 +0000)]
yay for case insensitive file systems (?)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90370 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix PR5673 by being more careful about pointers to functions.
Chris Lattner [Thu, 3 Dec 2009 01:05:45 +0000 (01:05 +0000)]
fix PR5673 by being more careful about pointers to functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90369 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoremove some dead std::ostream using code.
Chris Lattner [Thu, 3 Dec 2009 00:55:04 +0000 (00:55 +0000)]
remove some dead std::ostream using code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90366 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoimprove portability to avoid conflicting with std::next in c++'0x.
Chris Lattner [Thu, 3 Dec 2009 00:50:42 +0000 (00:50 +0000)]
improve portability to avoid conflicting with std::next in c++'0x.
Patch by Howard Hinnant!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90365 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoThis initial code is meant to convert TargetData to use an AbstractTypesUser so
Bill Wendling [Thu, 3 Dec 2009 00:17:12 +0000 (00:17 +0000)]
This initial code is meant to convert TargetData to use an AbstractTypesUser so
that it doesn't have dangling pointers when abstract types are resolved. This
modifies it somewhat to address comments: making the "StructLayoutMap" an
anonymous structure, calling "removeAbstractTypeUser" when appropriate, and
adding asserts where helpful.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90362 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix CMake makefiles
Douglas Gregor [Wed, 2 Dec 2009 22:19:31 +0000 (22:19 +0000)]
Fix CMake makefiles

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90354 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSkeleton for MachineInstr level SSA updater.
Evan Cheng [Wed, 2 Dec 2009 22:02:52 +0000 (22:02 +0000)]
Skeleton for MachineInstr level SSA updater.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90353 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove unnecessary check.
Bill Wendling [Wed, 2 Dec 2009 22:02:20 +0000 (22:02 +0000)]
Remove unnecessary check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90352 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd MaxStackAlignment.cpp to CMake
Jim Grosbach [Wed, 2 Dec 2009 19:31:07 +0000 (19:31 +0000)]
Add MaxStackAlignment.cpp to CMake

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90337 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFactor the stack alignment calculations out into a target independent pass.
Jim Grosbach [Wed, 2 Dec 2009 19:30:24 +0000 (19:30 +0000)]
Factor the stack alignment calculations out into a target independent pass.
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90336 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDon't count PHI instructions toward the limit for tail duplicating a block.
Bob Wilson [Wed, 2 Dec 2009 17:15:24 +0000 (17:15 +0000)]
Don't count PHI instructions toward the limit for tail duplicating a block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90326 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove EliminateDuplicatePHINodes() from SimplifyCFG.cpp to Local.cpp
Jim Grosbach [Wed, 2 Dec 2009 17:06:45 +0000 (17:06 +0000)]
Move EliminateDuplicatePHINodes() from SimplifyCFG.cpp to Local.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90324 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCheap, mostly strict, stable sorting.
Andreas Neustifter [Wed, 2 Dec 2009 15:57:15 +0000 (15:57 +0000)]
Cheap, mostly strict, stable sorting.

This is necessary for tests so the results are comparable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90320 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSilence compiler warnings.
Benjamin Kramer [Wed, 2 Dec 2009 15:33:44 +0000 (15:33 +0000)]
Silence compiler warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90319 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoClarify that DIEString does not keep a copy of the string.
Devang Patel [Wed, 2 Dec 2009 15:25:16 +0000 (15:25 +0000)]
Clarify that DIEString does not keep a copy of the string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90318 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCleanup/remove some parts of the lifetime region handling code in memdep and GVN,
Owen Anderson [Wed, 2 Dec 2009 07:35:19 +0000 (07:35 +0000)]
Cleanup/remove some parts of the lifetime region handling code in memdep and GVN,
per Chris' comments.  Adjust testcases to match.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90304 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofactor some code better.
Chris Lattner [Wed, 2 Dec 2009 06:44:58 +0000 (06:44 +0000)]
factor some code better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90299 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoformatting cleanups.
Chris Lattner [Wed, 2 Dec 2009 06:35:55 +0000 (06:35 +0000)]
formatting cleanups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90298 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agotidy up, remove dependence on order of evaluation of function args from EmitMemCpy.
Chris Lattner [Wed, 2 Dec 2009 06:05:42 +0000 (06:05 +0000)]
tidy up, remove dependence on order of evaluation of function args from EmitMemCpy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90297 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomerge sext-2 into sext.ll
Chris Lattner [Wed, 2 Dec 2009 05:34:35 +0000 (05:34 +0000)]
merge sext-2 into sext.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90293 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agorename test
Chris Lattner [Wed, 2 Dec 2009 05:32:33 +0000 (05:32 +0000)]
rename test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90292 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofilecheckize
Chris Lattner [Wed, 2 Dec 2009 05:32:16 +0000 (05:32 +0000)]
filecheckize

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90291 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFixed an assertion failure for tracking sext of a vector of integers
Mon P Wang [Wed, 2 Dec 2009 04:59:58 +0000 (04:59 +0000)]
Fixed an assertion failure for tracking sext of a vector of integers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90290 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd utility routine to create subprogram definition entry from subprogram declaration...
Devang Patel [Tue, 1 Dec 2009 23:09:02 +0000 (23:09 +0000)]
Add utility routine to create subprogram definition entry from subprogram declaration entry.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90282 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoReuse existing subprogram DIE.
Devang Patel [Tue, 1 Dec 2009 23:07:59 +0000 (23:07 +0000)]
Reuse existing subprogram DIE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90281 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoreturn more useful error messages by using strerror to format errno
Chris Lattner [Tue, 1 Dec 2009 22:51:41 +0000 (22:51 +0000)]
return more useful error messages by using strerror to format errno
instead of returning an ambiguous reason.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90275 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate per Bill's comments. Work in progress.
Eric Christopher [Tue, 1 Dec 2009 22:28:41 +0000 (22:28 +0000)]
Update per Bill's comments. Work in progress.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90271 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix PR5391: support early clobber physical register def tied with a use (ewwww)
Evan Cheng [Tue, 1 Dec 2009 22:25:00 +0000 (22:25 +0000)]
Fix PR5391: support early clobber physical register def tied with a use (ewwww)
- A valno should be set HasRedefByEC if there is an early clobber def in the middle of its live ranges. It should not be set if the def of the valno is defined by an early clobber.
- If a physical register def is tied to an use and it's an early clobber, it just means the HasRedefByEC is set since it's still one continuous live range.
- Add a couple of missing checks for HasRedefByEC in the coalescer. In general, it should not coalesce a vr with a physical register if the physical register has a early clobber def somewhere. This is overly conservative but that's the price for using such a nasty inline asm "feature".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90269 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agotest case for IV-Users simplification loop improvement
Jim Grosbach [Tue, 1 Dec 2009 21:53:51 +0000 (21:53 +0000)]
test case for IV-Users simplification loop improvement

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90260 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agorename some variables.
Chris Lattner [Tue, 1 Dec 2009 21:16:01 +0000 (21:16 +0000)]
rename some variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90258 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agotidy
Chris Lattner [Tue, 1 Dec 2009 21:15:15 +0000 (21:15 +0000)]
tidy

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90257 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd edge source labels to SelectionDAG graphs, now that the graph printing
Dan Gohman [Tue, 1 Dec 2009 19:20:00 +0000 (19:20 +0000)]
Add edge source labels to SelectionDAG graphs, now that the graph printing
framework omits differentiated edge sources in the case where the labels
are empty strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90254 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMinor cleanups.
Dan Gohman [Tue, 1 Dec 2009 19:16:15 +0000 (19:16 +0000)]
Minor cleanups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90253 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTrim an unnecessary #include.
Dan Gohman [Tue, 1 Dec 2009 19:13:27 +0000 (19:13 +0000)]
Trim an unnecessary #include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90252 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDon't default warnings to ON on MSVC, the spew is enough to triple the build time. :/
Daniel Dunbar [Tue, 1 Dec 2009 19:11:36 +0000 (19:11 +0000)]
Don't default warnings to ON on MSVC, the spew is enough to triple the build time. :/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90251 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoClear function specific containers while processing end of a function, even if DW_TAG...
Devang Patel [Tue, 1 Dec 2009 18:13:48 +0000 (18:13 +0000)]
Clear function specific containers while processing end of a function, even if DW_TAG_subprogram for current function is not found.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90247 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoThumb1 exception handling setjmp
Jim Grosbach [Tue, 1 Dec 2009 18:10:36 +0000 (18:10 +0000)]
Thumb1 exception handling setjmp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90246 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFor VLDM/VSTM (Advanced SIMD), set encoding bits Inst{11-8} to 0b1011.
Johnny Chen [Tue, 1 Dec 2009 17:37:06 +0000 (17:37 +0000)]
For VLDM/VSTM (Advanced SIMD), set encoding bits Inst{11-8} to 0b1011.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90243 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMove PHIElimination::isLiveOut method to LiveVariables.
Jakob Stoklund Olesen [Tue, 1 Dec 2009 17:13:31 +0000 (17:13 +0000)]
Move PHIElimination::isLiveOut method to LiveVariables.

We want LiveVariables clients to use methods rather than accessing the
getVarInfo data structure directly. That way it will be possible to change the
LiveVariables representation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90240 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agotypo
Gabor Greif [Tue, 1 Dec 2009 15:53:33 +0000 (15:53 +0000)]
typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90236 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agodemonstrate usage of Cases() mapping several strings to the same value; remove traili...
Gabor Greif [Tue, 1 Dec 2009 12:53:56 +0000 (12:53 +0000)]
demonstrate usage of Cases() mapping several strings to the same value; remove trailing spaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90230 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd relocation model options.
Mikhail Glushenkov [Tue, 1 Dec 2009 09:47:11 +0000 (09:47 +0000)]
Add relocation model options.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90222 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTypo.
Mikhail Glushenkov [Tue, 1 Dec 2009 09:19:09 +0000 (09:19 +0000)]
Typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90221 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix copy paste bug
Tobias Grosser [Tue, 1 Dec 2009 08:43:33 +0000 (08:43 +0000)]
Fix copy paste bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90220 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix 255.vortex again, third time's the charm.
Chris Lattner [Tue, 1 Dec 2009 07:33:32 +0000 (07:33 +0000)]
fix 255.vortex again, third time's the charm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90217 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agominimize this a bit more.
Chris Lattner [Tue, 1 Dec 2009 07:30:01 +0000 (07:30 +0000)]
minimize this a bit more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90216 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoForward -save-temps to llvm-gcc.
Mikhail Glushenkov [Tue, 1 Dec 2009 06:51:30 +0000 (06:51 +0000)]
Forward -save-temps to llvm-gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90214 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomerge 2009-11-29-ReverseMap.ll into crash.ll
Chris Lattner [Tue, 1 Dec 2009 06:22:10 +0000 (06:22 +0000)]
merge 2009-11-29-ReverseMap.ll into crash.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90212 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix PR5640 by tracking whether a block is the header of a loop more
Chris Lattner [Tue, 1 Dec 2009 06:04:43 +0000 (06:04 +0000)]
fix PR5640 by tracking whether a block is the header of a loop more
precisely, which prevents us from infinitely peeling the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90211 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSupport -[weak_]framework and -F in llvmc.
Mikhail Glushenkov [Tue, 1 Dec 2009 05:59:55 +0000 (05:59 +0000)]
Support -[weak_]framework and -F in llvmc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90210 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove the gcc builtins from the intrinsics, we'll lower them
Eric Christopher [Tue, 1 Dec 2009 03:18:26 +0000 (03:18 +0000)]
Remove the gcc builtins from the intrinsics, we'll lower them
explicitly so we can check arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90199 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUse CFG connectedness as a secondary sort key when deciding the order of copy coalescing.
Jakob Stoklund Olesen [Tue, 1 Dec 2009 03:03:00 +0000 (03:03 +0000)]
Use CFG connectedness as a secondary sort key when deciding the order of copy coalescing.

This means that well connected blocks are copy coalesced before the less connected blocks. Connected blocks are more difficult to
coalesce because intervals are more complicated, so handling them first gives a greater chance of success.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90194 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd a soft link so that in an apple style build we can find libLTO.dylib.
Eric Christopher [Tue, 1 Dec 2009 02:26:01 +0000 (02:26 +0000)]
Add a soft link so that in an apple style build we can find libLTO.dylib.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90189 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd two CMake flags LLVM_ENABLE_PEDANTIC and LLVM_ENABLE_WERROR,
Oscar Fuentes [Tue, 1 Dec 2009 02:21:51 +0000 (02:21 +0000)]
Add two CMake flags LLVM_ENABLE_PEDANTIC and LLVM_ENABLE_WERROR,
PEDANTIC defaults to ON and WERROR default to off.

Also add MSVC warnings. To disable warnings add the flags
LLVM_ENABLE_WARNINGS (default on).

Patch by Tobias Grosser!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90188 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix PR5649 by making fib use the JIT instead of the interpreter, patch by Perry Lorier!
Chris Lattner [Tue, 1 Dec 2009 01:56:27 +0000 (01:56 +0000)]
fix PR5649 by making fib use the JIT instead of the interpreter, patch by Perry Lorier!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90186 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd a comment about A[i+(j+1)].
Dan Gohman [Tue, 1 Dec 2009 01:38:10 +0000 (01:38 +0000)]
Add a comment about A[i+(j+1)].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90185 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove some validation errors.
Bill Wendling [Tue, 1 Dec 2009 00:59:58 +0000 (00:59 +0000)]
Remove some validation errors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90184 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSome formatting and spelling fixes.
Bill Wendling [Tue, 1 Dec 2009 00:53:11 +0000 (00:53 +0000)]
Some formatting and spelling fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90182 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDevang pointed out that this code should use DIScope instead of
Dan Gohman [Tue, 1 Dec 2009 00:45:56 +0000 (00:45 +0000)]
Devang pointed out that this code should use DIScope instead of
DICompileUnit. This code now prints debug filenames successfully.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90181 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix PR5614: parts of a physical register def may be killed the rest.
Evan Cheng [Tue, 1 Dec 2009 00:44:45 +0000 (00:44 +0000)]
Fix PR5614: parts of a physical register def may be killed the rest.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90180 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTest case for r90175.
Devang Patel [Tue, 1 Dec 2009 00:13:06 +0000 (00:13 +0000)]
Test case for r90175.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90176 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFor VMOV (immediate), make some of the encoding bits (cmode and op) unspecified.
Johnny Chen [Tue, 1 Dec 2009 00:02:02 +0000 (00:02 +0000)]
For VMOV (immediate), make some of the encoding bits (cmode and op) unspecified.
For VMOVv*i[16,32], op bit is don't care, and some cmode bits vary depending on
the immediate values.

Ref: Table A7-15 Modified immediate values for Advanced SIMD instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90173 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoIf pointer type has a name then do not ignore the name.
Devang Patel [Mon, 30 Nov 2009 23:56:56 +0000 (23:56 +0000)]
If pointer type has a name then do not ignore the name.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90172 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago* CMakeLists.txt: Adds warnings flags for g++. Fixes PR 5647.
Oscar Fuentes [Mon, 30 Nov 2009 23:50:14 +0000 (23:50 +0000)]
* CMakeLists.txt: Adds warnings flags for g++. Fixes PR 5647.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90170 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago* cmake/modules/LLVMLibDeps.cmake: Updated library dependencies.
Oscar Fuentes [Mon, 30 Nov 2009 23:48:51 +0000 (23:48 +0000)]
* cmake/modules/LLVMLibDeps.cmake: Updated library dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90169 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMinor whitespace fixes.
Dan Gohman [Mon, 30 Nov 2009 23:33:53 +0000 (23:33 +0000)]
Minor whitespace fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90166 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix a minor inconsistency.
Dan Gohman [Mon, 30 Nov 2009 23:33:37 +0000 (23:33 +0000)]
Fix a minor inconsistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90165 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix typos in comments.
Dan Gohman [Mon, 30 Nov 2009 23:30:43 +0000 (23:30 +0000)]
Fix typos in comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90164 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoNew virtual registers created for spill intervals should inherit allocation hints...
Jakob Stoklund Olesen [Mon, 30 Nov 2009 22:55:54 +0000 (22:55 +0000)]
New virtual registers created for spill intervals should inherit allocation hints from the original register.

This helps us avoid silly copies when rematting values that are copied to a physical register:

leaq _.str44(%rip), %rcx
movq %rcx, %rsi
call _strcmp

becomes:

leaq _.str44(%rip), %rsi
call _strcmp

The coalescer will not touch the movq because that would tie down the physical register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90163 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDebug info is disabled on PPC Darwin.
Bill Wendling [Mon, 30 Nov 2009 22:23:29 +0000 (22:23 +0000)]
Debug info is disabled on PPC Darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90160 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoReprioritize tests for tail duplication to be aggressive about indirect
Bob Wilson [Mon, 30 Nov 2009 18:56:45 +0000 (18:56 +0000)]
Reprioritize tests for tail duplication to be aggressive about indirect
branches even when optimizing for code size.  Unless we find evidence to the
contrary in the future, the special treatment for indirect branches does not
have a significant effect on code size, and performance still matters with -Os.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90147 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove isProfitableToDuplicateIndirectBranch target hook. It is profitable
Bob Wilson [Mon, 30 Nov 2009 18:35:03 +0000 (18:35 +0000)]
Remove isProfitableToDuplicateIndirectBranch target hook.  It is profitable
for all the processors where I have tried it, and even when it might not help
performance, the cost is quite low.  The opportunities for duplicating
indirect branches are limited by other factors so code size does not change
much due to tail duplicating indirect branches aggressively.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90144 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix some more ARM unified syntax warnings.
Bob Wilson [Mon, 30 Nov 2009 17:47:19 +0000 (17:47 +0000)]
Fix some more ARM unified syntax warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90141 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix odd declaration.
Benjamin Kramer [Mon, 30 Nov 2009 15:52:29 +0000 (15:52 +0000)]
Fix odd declaration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90138 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix last DOTGraphTraits problems in CompilationGraph.
Tobias Grosser [Mon, 30 Nov 2009 13:34:51 +0000 (13:34 +0000)]
Fix last DOTGraphTraits problems in CompilationGraph.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90136 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove forgotten ShortNames in Trie and CompilationGraph
Tobias Grosser [Mon, 30 Nov 2009 13:14:13 +0000 (13:14 +0000)]
Remove forgotten ShortNames in Trie and CompilationGraph

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90135 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove ShortNames from getNodeLabel in DOTGraphTraits
Tobias Grosser [Mon, 30 Nov 2009 12:38:47 +0000 (12:38 +0000)]
Remove ShortNames from getNodeLabel in DOTGraphTraits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90134 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoInstantiate DefaultDOTGraphTraits
Tobias Grosser [Mon, 30 Nov 2009 12:38:13 +0000 (12:38 +0000)]
Instantiate DefaultDOTGraphTraits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90133 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDo not point edge heads to source labels
Tobias Grosser [Mon, 30 Nov 2009 12:37:39 +0000 (12:37 +0000)]
Do not point edge heads to source labels

If no destination label is available, just point to the node itself
instead of pointing to some source label. Source and destination labels are
not related in any way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90132 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoOnly print edgeSourceLabels if they are not empty
Tobias Grosser [Mon, 30 Nov 2009 12:24:40 +0000 (12:24 +0000)]
Only print edgeSourceLabels if they are not empty

Graphviz can layout the graphs better if a node does not contain source
ports. Therefore only print the ports if the source ports are useful,
that means are not labeled with the empty string "".
This patch also simplifies graphs without any edgeSourceLabels e.g. the
dominance trees.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90131 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSmall PostDominatorTree improvements
Tobias Grosser [Mon, 30 Nov 2009 12:06:37 +0000 (12:06 +0000)]
Small PostDominatorTree improvements

 * Do not SEGFAULT if tree entryNode() is NULL
 * Print function names in dotty printer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90130 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove ":" after BB name in -view-cfg-only
Tobias Grosser [Mon, 30 Nov 2009 11:55:24 +0000 (11:55 +0000)]
Remove ":" after BB name in -view-cfg-only

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90129 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFirst pass at llvm.objectsize documentation.
Eric Christopher [Mon, 30 Nov 2009 08:03:53 +0000 (08:03 +0000)]
First pass at llvm.objectsize documentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90116 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r90107, fixing test/Transforms/GVN/2009-11-29-ReverseMap.ll and the
Nick Lewycky [Mon, 30 Nov 2009 07:05:51 +0000 (07:05 +0000)]
Revert r90107, fixing test/Transforms/GVN/2009-11-29-ReverseMap.ll and the
llvm-gcc build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90113 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd a testcase for the current llvm-gcc build failure.
Nick Lewycky [Mon, 30 Nov 2009 07:02:18 +0000 (07:02 +0000)]
Add a testcase for the current llvm-gcc build failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90112 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove the 'simple jit' tutorial as it wasn't really being maintained and its
Nick Lewycky [Mon, 30 Nov 2009 04:23:17 +0000 (04:23 +0000)]
Remove the 'simple jit' tutorial as it wasn't really being maintained and its
material is covered by the Kaleidoscope tutorial.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90111 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd test case for r90108
Mon P Wang [Mon, 30 Nov 2009 02:42:27 +0000 (02:42 +0000)]
Add test case for r90108

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90109 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdded support to allow clients to custom widen. For X86, custom widen vectors for
Mon P Wang [Mon, 30 Nov 2009 02:42:02 +0000 (02:42 +0000)]
Added support to allow clients to custom widen. For X86, custom widen vectors for
divide/remainder since these operations can trap by unroll them and adding undefs
for the resulting vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90108 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoreapply r90093 with an addition of keeping the forward
Chris Lattner [Mon, 30 Nov 2009 02:26:29 +0000 (02:26 +0000)]
reapply r90093 with an addition of keeping the forward
and reverse nonlocal memdep maps in synch, this should
fix 255.vortex.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90107 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix this test on 64-bit systems which seem to use i64 for gep indices sometimes
Nick Lewycky [Mon, 30 Nov 2009 02:23:57 +0000 (02:23 +0000)]
Fix this test on 64-bit systems which seem to use i64 for gep indices sometimes
while 32-bit gcc uses i32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90106 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCommit r90099 made LLVM simplify one of these constant expressions a little
Nick Lewycky [Mon, 30 Nov 2009 00:38:56 +0000 (00:38 +0000)]
Commit r90099 made LLVM simplify one of these constant expressions a little
more. Update the syntax we're checking for and filecheckize it too.

This will fix the selfhost buildbots but will 'break' the others (sigh) because
they're still linked against older LLVM which is emitting less optimized IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90104 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTeach ConstantFolding to do a better job when folding gep(bitcast).
Nick Lewycky [Sun, 29 Nov 2009 21:40:55 +0000 (21:40 +0000)]
Teach ConstantFolding to do a better job when folding gep(bitcast).

This permits the devirtualization of llvm.org/PR3100#c9 when compiled by clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90099 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r90089 for now, it's breaking selfhost.
Benjamin Kramer [Sun, 29 Nov 2009 21:17:48 +0000 (21:17 +0000)]
Revert r90089 for now, it's breaking selfhost.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90097 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agorevert this patch for now, it causes failures of:
Chris Lattner [Sun, 29 Nov 2009 21:14:59 +0000 (21:14 +0000)]
revert this patch for now, it causes failures of:
    LLVM::Transforms/GVN/2009-02-17-LoadPRECrash.ll
    LLVM::Transforms/GVN/2009-06-17-InvalidPRE.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90096 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix a really nasty caching bug I introduced in memdep. An entry
Chris Lattner [Sun, 29 Nov 2009 21:09:36 +0000 (21:09 +0000)]
Fix a really nasty caching bug I introduced in memdep.  An entry
was being added to the Result vector, but not being put in the
cache.  This means that if the cache was reused wholesale for a
later query that it would be missing this entry and we'd do an
incorrect load elimination.

Unfortunately, it's not really possible to write a useful
testcase for this, but this unbreaks 255.vortex.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90093 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix two FIXMEs.
Benjamin Kramer [Sun, 29 Nov 2009 20:29:30 +0000 (20:29 +0000)]
Fix two FIXMEs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90089 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDetabify.
Nick Lewycky [Sun, 29 Nov 2009 18:10:39 +0000 (18:10 +0000)]
Detabify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90085 91177308-0d34-0410-b5e6-96231b3b80d8