oota-llvm.git
12 years agoTidy up. Trailing whitespace.
Jim Grosbach [Tue, 31 Jan 2012 19:47:32 +0000 (19:47 +0000)]
Tidy up. Trailing whitespace.

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

12 years agoObvious unnecessary loop removal. Follow through from previous checkin.
Andrew Trick [Tue, 31 Jan 2012 18:54:19 +0000 (18:54 +0000)]
Obvious unnecessary loop removal. Follow through from previous checkin.

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

12 years agoAdd assembler dialect attribute in asm parser which lets target specific asm parser...
Devang Patel [Tue, 31 Jan 2012 18:14:05 +0000 (18:14 +0000)]
Add assembler dialect attribute in asm parser which lets target specific asm parser change dialect on the fly.

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

12 years agoRegenerate configure.
Rafael Espindola [Tue, 31 Jan 2012 17:18:47 +0000 (17:18 +0000)]
Regenerate configure.

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

12 years agoFix BrainF compilation.
Francois Pichet [Tue, 31 Jan 2012 09:35:01 +0000 (09:35 +0000)]
Fix BrainF compilation.

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

12 years agoIncrease the initial vector size to be equivalent to the size of the Deps
Bill Wendling [Tue, 31 Jan 2012 07:04:52 +0000 (07:04 +0000)]
Increase the initial vector size to be equivalent to the size of the Deps
vector. This potentially saves a resizing.

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

12 years agoCache the size of the vector instead of calling .size() all over the place.
Bill Wendling [Tue, 31 Jan 2012 06:57:53 +0000 (06:57 +0000)]
Cache the size of the vector instead of calling .size() all over the place.

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

12 years agoRemove pcmpgt/pcmpeq intrinsics as clang is not using them.
Craig Topper [Tue, 31 Jan 2012 06:52:44 +0000 (06:52 +0000)]
Remove pcmpgt/pcmpeq intrinsics as clang is not using them.

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

12 years agoeliminate the "string" form of ConstantArray::get, using
Chris Lattner [Tue, 31 Jan 2012 06:18:43 +0000 (06:18 +0000)]
eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead.

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

12 years agoremove commented-out code.
Chris Lattner [Tue, 31 Jan 2012 06:17:26 +0000 (06:17 +0000)]
remove commented-out code.

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

12 years agowith recent changes, ConstantArray is never a "string". Remove the associated
Chris Lattner [Tue, 31 Jan 2012 06:05:00 +0000 (06:05 +0000)]
with recent changes, ConstantArray is never a "string".  Remove the associated
methods and constant fold the clients to false.

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

12 years agoupdate this to ConstantDataArray. There are no tests and this isn't using the prefer...
Chris Lattner [Tue, 31 Jan 2012 06:03:46 +0000 (06:03 +0000)]
update this to ConstantDataArray.  There are no tests and this isn't using the preferred functionality for ripping apart strings, so I have no way to test this.

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

12 years agoRAFast: Generalize the logic for return operands.
Andrew Trick [Tue, 31 Jan 2012 05:55:32 +0000 (05:55 +0000)]
RAFast: Generalize the logic for return operands.

This removes implicit assumption about the form of MI coming into regalloc. In particular, it should be independent of ProcessImplicitDefs which will eventually become a standard part of coming out of SSA--unless we simply can eliminate IMPLICIT_DEF completely. Current unit tests expose this once I remove incidental pass ordering restrictions.

This is not a final fix. Just a temporary workaround until I figure out the right way.

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

12 years agofix a small oversight that broke the fhourstones app.
Chris Lattner [Tue, 31 Jan 2012 05:18:56 +0000 (05:18 +0000)]
fix a small oversight that broke the fhourstones app.

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

12 years agoremove the last vestiges of llvm::GetConstantStringInfo, in CodeGen.
Chris Lattner [Tue, 31 Jan 2012 05:09:17 +0000 (05:09 +0000)]
remove the last vestiges of llvm::GetConstantStringInfo, in CodeGen.

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

12 years agoeliminate the last uses of GetConstantStringInfo from this file, I didn't realize...
Chris Lattner [Tue, 31 Jan 2012 04:54:27 +0000 (04:54 +0000)]
eliminate the last uses of GetConstantStringInfo from this file, I didn't realize I was that close...

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

12 years agoAdd various coarse bit-width architecture predicates to llvm::Triple.
Chandler Carruth [Tue, 31 Jan 2012 04:52:32 +0000 (04:52 +0000)]
Add various coarse bit-width architecture predicates to llvm::Triple.
These are very useful for frontends and other utilities reasoning about
or selecting between triples.

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

12 years agostart moving SimplifyLibcalls over to getConstantStringInfo, which is
Chris Lattner [Tue, 31 Jan 2012 04:43:11 +0000 (04:43 +0000)]
start moving SimplifyLibcalls over to getConstantStringInfo, which is
dramatically more efficient than GetConstantStringInfo.

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

12 years agoChange ConstantArray::get to form a ConstantDataArray when possible,
Chris Lattner [Tue, 31 Jan 2012 04:42:22 +0000 (04:42 +0000)]
Change ConstantArray::get to form a ConstantDataArray when possible,
kicking in the big win of ConstantDataArray.  As part of this, change
the implementation of GetConstantStringInfo in ValueTracking to work
with ConstantDataArray (and not ConstantArray) making it dramatically,
amazingly, more efficient in the process and renaming it to
getConstantStringInfo.

This keeps around a GetConstantStringInfo entrypoint that (grossly)
forwards to getConstantStringInfo and constructs the std::string
required, but existing clients should move over to
getConstantStringInfo instead.

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

12 years agorework this logic to not depend on the last argument to GetConstantStringInfo,
Chris Lattner [Tue, 31 Jan 2012 04:39:22 +0000 (04:39 +0000)]
rework this logic to not depend on the last argument to GetConstantStringInfo,
which is going away.

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

12 years agodon't emit a 1-byte object as a .fill. This is silly and causes
Chris Lattner [Tue, 31 Jan 2012 03:39:24 +0000 (03:39 +0000)]
don't emit a 1-byte object as a .fill.  This is silly and causes
CodeGen/X86/global-sections.ll to fail with CDArray

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

12 years agouse the right accessor for ConstantDataArray.
Chris Lattner [Tue, 31 Jan 2012 03:16:39 +0000 (03:16 +0000)]
use the right accessor for ConstantDataArray.

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

12 years agofix asmwriting of ConstantDataArray to use the right element count,
Chris Lattner [Tue, 31 Jan 2012 03:15:40 +0000 (03:15 +0000)]
fix asmwriting of ConstantDataArray to use the right element count,
simplify ConstantArray handling, since they can never be empty.

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

12 years agoenhance logic to support ConstantDataArray.
Chris Lattner [Tue, 31 Jan 2012 02:55:06 +0000 (02:55 +0000)]
enhance logic to support ConstantDataArray.

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

12 years agoRemove all references to the old EH.
Bill Wendling [Tue, 31 Jan 2012 02:09:07 +0000 (02:09 +0000)]
Remove all references to the old EH.

There was always the current EH. -- Ministry of Truth

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

12 years agoUpdate test to new EH model.
Bill Wendling [Tue, 31 Jan 2012 02:05:13 +0000 (02:05 +0000)]
Update test to new EH model.

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

12 years agoUpdate test to new EH model.
Bill Wendling [Tue, 31 Jan 2012 02:04:20 +0000 (02:04 +0000)]
Update test to new EH model.

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

12 years agoRemove the now-dead llvm.eh.exception and llvm.eh.selector intrinsics.
Bill Wendling [Tue, 31 Jan 2012 01:58:48 +0000 (01:58 +0000)]
Remove the now-dead llvm.eh.exception and llvm.eh.selector intrinsics.

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

12 years agos/getInnerUnwindDest/getInnerResumeDest/g
Bill Wendling [Tue, 31 Jan 2012 01:48:40 +0000 (01:48 +0000)]
s/getInnerUnwindDest/getInnerResumeDest/g

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

12 years agoRemove the eh.exception and eh.selector intrinsics. Also remove a hack to copy
Bill Wendling [Tue, 31 Jan 2012 01:46:13 +0000 (01:46 +0000)]
Remove the eh.exception and eh.selector intrinsics. Also remove a hack to copy
over the catch information. The catch information is now tacked to the invoke
instruction.

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

12 years agoRemove ivar which is identical to another ivar.
Bill Wendling [Tue, 31 Jan 2012 01:25:54 +0000 (01:25 +0000)]
Remove ivar which is identical to another ivar.

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

12 years agoRemove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.
Bill Wendling [Tue, 31 Jan 2012 01:22:03 +0000 (01:22 +0000)]
Remove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.

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

12 years agoRemove more dead functions.
Bill Wendling [Tue, 31 Jan 2012 01:18:21 +0000 (01:18 +0000)]
Remove more dead functions.

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

12 years agos/getInnerUnwindDestNewEH/getInnerUnwindDest/g
Bill Wendling [Tue, 31 Jan 2012 01:15:59 +0000 (01:15 +0000)]
s/getInnerUnwindDestNewEH/getInnerUnwindDest/g

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

12 years agoRemove some unused, old-EH methods.
Bill Wendling [Tue, 31 Jan 2012 01:14:49 +0000 (01:14 +0000)]
Remove some unused, old-EH methods.

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

12 years agoUse the correct ShiftAmtTy for creating shifts after legalization. PR11881. Not...
Eli Friedman [Tue, 31 Jan 2012 01:08:03 +0000 (01:08 +0000)]
Use the correct ShiftAmtTy for creating shifts after legalization.  PR11881.  Not committing a testcase because I think it will be too fragile.

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

12 years agoGet rid of references to dead intrinsics.
Bill Wendling [Tue, 31 Jan 2012 01:05:20 +0000 (01:05 +0000)]
Get rid of references to dead intrinsics.

The eh.selector and eh.resume intrinsics aren't used anymore. Get rid of some
calls to them.

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

12 years agoFormatting cleanups. No functionality change.
Bill Wendling [Tue, 31 Jan 2012 01:01:16 +0000 (01:01 +0000)]
Formatting cleanups. No functionality change.

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

12 years agoRelax constructor for IntrusiveRefCntPtr to not be explicit.
Ted Kremenek [Tue, 31 Jan 2012 00:57:08 +0000 (00:57 +0000)]
Relax constructor for IntrusiveRefCntPtr to not be explicit.

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

12 years agoUse traits for IntrusiveRefCntPtr to determine how to increment/decrement a reference...
Ted Kremenek [Tue, 31 Jan 2012 00:57:04 +0000 (00:57 +0000)]
Use traits for IntrusiveRefCntPtr to determine how to increment/decrement a reference count.

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

12 years agoRemove no-longer-useful dyn_casts and pals.
Bill Wendling [Tue, 31 Jan 2012 00:56:53 +0000 (00:56 +0000)]
Remove no-longer-useful dyn_casts and pals.

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

12 years agoAdd a constified getLandingPad() method.
Bill Wendling [Tue, 31 Jan 2012 00:26:24 +0000 (00:26 +0000)]
Add a constified getLandingPad() method.

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

12 years ago[asan] fix the ObjC support (asan Issue #33)
Kostya Serebryany [Mon, 30 Jan 2012 23:50:10 +0000 (23:50 +0000)]
[asan] fix the ObjC support (asan Issue #33)

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

12 years agoChris's constant data sequence refactoring actually enabled printing
Chandler Carruth [Mon, 30 Jan 2012 23:47:44 +0000 (23:47 +0000)]
Chris's constant data sequence refactoring actually enabled printing
vectors of all one bits to be printed more cleverly in the AsmPrinter.
Unfortunately, the byte value for all one bits is the same with
-fsigned-char as the error return of '-1'. Force this to be the unsigned
byte value when returning it to avoid this problem, and update the test
case for the shiny new behavior.

Yay for building LLVM and Clang with -funsigned-char.

Chris, please review, and let me know if there is any reason to not
desire this change. It seems good on the surface, and certainly intended
based on the code written.

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

12 years agoPR11834: Use macros which are defined on Windows. Patch by Marina Yatsina.
Evan Cheng [Mon, 30 Jan 2012 23:10:32 +0000 (23:10 +0000)]
PR11834: Use macros which are defined on Windows. Patch by Marina Yatsina.

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

12 years agobasic-aa does support AliasAnalysis chaining now.
Dan Gohman [Mon, 30 Jan 2012 23:05:41 +0000 (23:05 +0000)]
basic-aa does support AliasAnalysis chaining now.

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

12 years agoIntel syntax. Adjust special code, used to recognize cmp<comparison code>{ss,sd,ps...
Devang Patel [Mon, 30 Jan 2012 22:47:12 +0000 (22:47 +0000)]
Intel syntax. Adjust special code, used to recognize cmp<comparison code>{ss,sd,ps,pd}, for intel syntax.

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

12 years agoTypo.
Chad Rosier [Mon, 30 Jan 2012 22:44:13 +0000 (22:44 +0000)]
Typo.

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

12 years agoTypo.
Chad Rosier [Mon, 30 Jan 2012 21:13:22 +0000 (21:13 +0000)]
Typo.

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

12 years agoImplement String Cast from Integer
David Greene [Mon, 30 Jan 2012 20:47:04 +0000 (20:47 +0000)]
Implement String Cast from Integer

Allow casts from integer to string.

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

12 years agoIntel syntax. Support .intel_syntax directive.
Devang Patel [Mon, 30 Jan 2012 20:02:42 +0000 (20:02 +0000)]
Intel syntax. Support .intel_syntax directive.

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

12 years agoFix refacto.
Benjamin Kramer [Mon, 30 Jan 2012 20:01:35 +0000 (20:01 +0000)]
Fix refacto.

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

12 years agoHere's a new one: GCC was complaining about an only-used-in-asserts
Matt Beaumont-Gay [Mon, 30 Jan 2012 19:26:20 +0000 (19:26 +0000)]
Here's a new one: GCC was complaining about an only-used-in-asserts
*function*. Wrap the function in #ifndef NDEBUG.

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

12 years agoVarious improvements suggested by Duncan
Chris Lattner [Mon, 30 Jan 2012 18:19:30 +0000 (18:19 +0000)]
Various improvements suggested by Duncan

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

12 years agoEliminate narrowing conversion in initializer list, to make C++11 happy
Douglas Gregor [Mon, 30 Jan 2012 16:57:18 +0000 (16:57 +0000)]
Eliminate narrowing conversion in initializer list, to make C++11 happy

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

12 years agoX86: Simplify shuffle mask generation code.
Benjamin Kramer [Mon, 30 Jan 2012 15:16:21 +0000 (15:16 +0000)]
X86: Simplify shuffle mask generation code.

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

12 years agoFix compilation of ASan tests on OS X Lion (see http://code.google.com/p/address...
Alexander Potapenko [Mon, 30 Jan 2012 10:40:22 +0000 (10:40 +0000)]
Fix compilation of ASan tests on OS X Lion (see code.google.com/p/address-sanitizer/issues/detail?id=32)
The redzones emitted by AddressSanitizer for CFString instances confuse the linker and are of little use, so we shouldn't add them.

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

12 years agoAdd GCCBuiltin declarations for cmpsd/cmpss/cmppd/cmpps to allow custom code to be...
Craig Topper [Mon, 30 Jan 2012 08:33:36 +0000 (08:33 +0000)]
Add GCCBuiltin declarations for cmpsd/cmpss/cmppd/cmpps to allow custom code to be removed from clang.

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

12 years agoFix pattern for memory form of PSHUFD for use with FP vectors to remove bitcast to...
Craig Topper [Mon, 30 Jan 2012 07:50:31 +0000 (07:50 +0000)]
Fix pattern for memory form of PSHUFD for use with FP vectors to remove bitcast to an integer vector that normal code wouldn't have. Also remove bitcasts from code that turns splat vector loads into a shuffle as it was making the broken pattern necessary.

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

12 years agofix a major oversight that is breaking some llvm-test tests.
Chris Lattner [Mon, 30 Jan 2012 07:36:01 +0000 (07:36 +0000)]
fix a major oversight that is breaking some llvm-test tests.

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

12 years agoDenseMap::find_as() and unit tests.
Talin [Mon, 30 Jan 2012 06:55:43 +0000 (06:55 +0000)]
DenseMap::find_as() and unit tests.

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

12 years agoFirst step of flipping on ConstantDataSequential: enable ConstantDataVector
Chris Lattner [Mon, 30 Jan 2012 06:21:21 +0000 (06:21 +0000)]
First step of flipping on ConstantDataSequential: enable ConstantDataVector
to be formed whenever ConstantVector::get is used.

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

12 years agowhen verbose asm is on, print integers in ConstantDataSequentials just
Chris Lattner [Mon, 30 Jan 2012 05:55:11 +0000 (05:55 +0000)]
when verbose asm is on, print integers in ConstantDataSequentials just
like normal integers.

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

12 years agodon't lose tail padding on ConstantDataAggregate vec3's.
Chris Lattner [Mon, 30 Jan 2012 05:49:43 +0000 (05:49 +0000)]
don't lose tail padding on ConstantDataAggregate vec3's.

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

12 years agoFix ConstantFoldShuffleVectorInstruction to properly handle the case
Chris Lattner [Mon, 30 Jan 2012 05:34:13 +0000 (05:34 +0000)]
Fix ConstantFoldShuffleVectorInstruction to properly handle the case
when the result type has a different # elements than the input vectors.

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

12 years agoCMake: Promote the testing targets out of folders on IDE.
NAKAMURA Takumi [Mon, 30 Jan 2012 03:15:47 +0000 (03:15 +0000)]
CMake: Promote the testing targets out of folders on IDE.

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

12 years agoCMake: Add the folder "Tablegenning" on llvm-tblgen targets.
NAKAMURA Takumi [Mon, 30 Jan 2012 03:01:03 +0000 (03:01 +0000)]
CMake: Add the folder "Tablegenning" on llvm-tblgen targets.

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

12 years agoinitialize the Next field to null
Chris Lattner [Mon, 30 Jan 2012 01:17:43 +0000 (01:17 +0000)]
initialize the Next field to null

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

12 years agoMove some XOP patterns into instruction definition. Replae VPCMOV intrinsic patterns...
Craig Topper [Mon, 30 Jan 2012 01:10:15 +0000 (01:10 +0000)]
Move some XOP patterns into instruction definition. Replae VPCMOV intrinsic patterns with custom lowering to a target specific nodes.

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

12 years agoAdd bitcode reader and writer support for ConstantDataAggregate, which
Chris Lattner [Mon, 30 Jan 2012 00:51:16 +0000 (00:51 +0000)]
Add bitcode reader and writer support for ConstantDataAggregate, which
should be feature complete now.  Lets see if it works.

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

12 years agoCleanup the organization of some methods in llvm::Triple and provide
Chandler Carruth [Sun, 29 Jan 2012 23:09:12 +0000 (23:09 +0000)]
Cleanup the organization of some methods in llvm::Triple and provide
a better doxyment group for convenience predicates.

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

12 years agoMove Clang's file-level locking facility over to LLVM's support
Douglas Gregor [Sun, 29 Jan 2012 20:15:10 +0000 (20:15 +0000)]
Move Clang's file-level locking facility over to LLVM's support
library, since it doesn't really have anything to do with Clang.

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

12 years agoCleanups for EABI standard functions
Anton Korobeynikov [Sun, 29 Jan 2012 09:11:50 +0000 (09:11 +0000)]
Cleanups for EABI standard functions

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

12 years agoUse base AAPCS for varargs functions even for AAPCS-VFP CC
Anton Korobeynikov [Sun, 29 Jan 2012 09:06:09 +0000 (09:06 +0000)]
Use base AAPCS for varargs functions even for AAPCS-VFP CC

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

12 years agoFix some scavenger performance issues.
Jakob Stoklund Olesen [Sun, 29 Jan 2012 01:29:28 +0000 (01:29 +0000)]
Fix some scavenger performance issues.

- Don't call malloc+free in the very hot forward().
- Don't call isTiedToDefOperand().
- Don't create BitVector temporaries.
- Merge DeadRegs into KillRegs.
- Eliminate the early clobber checks, they were irrelevant to scavenging.
- Remove unnecessary code from -Asserts builds.

This speeds up ARM PEI by 3.4x and overall llc -O0 codegen time by 11%.

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

12 years agoAvoid creating BitVector temporaries.
Jakob Stoklund Olesen [Sun, 29 Jan 2012 01:29:25 +0000 (01:29 +0000)]
Avoid creating BitVector temporaries.

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

12 years agoAdd a BitVector::reset(BitVector&) method.
Jakob Stoklund Olesen [Sun, 29 Jan 2012 01:29:22 +0000 (01:29 +0000)]
Add a BitVector::reset(BitVector&) method.

The alternative LHS &= ~RHS is way too slow because it creates a
temporary that calls malloc/free.

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

12 years agoFix typo.
Nick Lewycky [Sat, 28 Jan 2012 23:33:44 +0000 (23:33 +0000)]
Fix typo.

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

12 years agoAdd a note about a potential optimization for clz/ctz patterns for ARM
Bob Wilson [Sat, 28 Jan 2012 18:30:07 +0000 (18:30 +0000)]
Add a note about a potential optimization for clz/ctz patterns for ARM
(and other targets).

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

12 years agoEnsure .AliasedSymbol() is called on all uses of getSymbol(). Affects ARM and MIPS...
James Molloy [Sat, 28 Jan 2012 15:58:32 +0000 (15:58 +0000)]
Ensure .AliasedSymbol() is called on all uses of getSymbol(). Affects ARM and MIPS ELF backends.

Fixes PR11877

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

12 years agoSilence GCC's -Wreturn-type warning.
Benjamin Kramer [Sat, 28 Jan 2012 15:28:41 +0000 (15:28 +0000)]
Silence GCC's -Wreturn-type warning.

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

12 years agoSmall improvement to the recursion detection logic from the previous commit.
Rafael Espindola [Sat, 28 Jan 2012 06:22:14 +0000 (06:22 +0000)]
Small improvement to the recursion detection logic from the previous commit.

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

12 years agoHandle recursive variable definitions directly. This gives us better error
Rafael Espindola [Sat, 28 Jan 2012 05:57:00 +0000 (05:57 +0000)]
Handle recursive variable definitions directly. This gives us better error
messages and allows us to fix PR11865.

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

12 years ago[asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi
Kostya Serebryany [Sat, 28 Jan 2012 04:27:16 +0000 (04:27 +0000)]
[asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi

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

12 years agoReapply r149159 with a fix to add to a PHI node with a non-null parent.
Bill Wendling [Sat, 28 Jan 2012 01:17:56 +0000 (01:17 +0000)]
Reapply r149159 with a fix to add to a PHI node with a non-null parent.

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

12 years agoRemove code that adds live ranges for dead defs. It seems to be breaking things.
Lang Hames [Sat, 28 Jan 2012 01:17:01 +0000 (01:17 +0000)]
Remove code that adds live ranges for dead defs. It seems to be breaking things.

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

12 years agoRevert r149159 until I can fix tests.
Bill Wendling [Sat, 28 Jan 2012 01:10:01 +0000 (01:10 +0000)]
Revert r149159 until I can fix tests.

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

12 years agoDon't always create a separate block for the call to _Unwind_Resume.
Bill Wendling [Sat, 28 Jan 2012 00:47:18 +0000 (00:47 +0000)]
Don't always create a separate block for the call to _Unwind_Resume.

Sometimes there is only one 'resume' instruction per function. In those
situations, we don't need a separate block for the call to _Unwind_Resume. In
fact, it adds a lot of overhead to code-gen if we do that -- especially at -O0.
If we have a single 'resume' instruction, just generate the call within that
block.
<rdar://problem/10694814>

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

12 years agoFix Record Name Reference
David Greene [Sat, 28 Jan 2012 00:03:24 +0000 (00:03 +0000)]
Fix Record Name Reference

Get the record name though the init to avoid an assert.

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

12 years agoSilence warning about parens for && within ||
Lang Hames [Fri, 27 Jan 2012 23:52:25 +0000 (23:52 +0000)]
Silence warning about parens for && within ||

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

12 years agoAdd r149110 back with a fix for when the vector and the int have the same
Rafael Espindola [Fri, 27 Jan 2012 23:33:07 +0000 (23:33 +0000)]
Add r149110 back with a fix for when the vector and the int have the same
width.

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

12 years agoRemove Deprecated Features
David Greene [Fri, 27 Jan 2012 23:01:35 +0000 (23:01 +0000)]
Remove Deprecated Features

Move to a model where we build whatever branches are checked out
in the source directories.  This was a bit too smart (and complicated)
in handling details best left to the user and the revision control
system.

In addition, get rid of support for llvm-gcc and building gcc as
these are no longer necessary.

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

12 years agoRevert r149110 and add a testcase that was crashing since that revision.
Rafael Espindola [Fri, 27 Jan 2012 22:42:48 +0000 (22:42 +0000)]
Revert r149110 and add a testcase that was crashing since that revision.
Unfortunately I also had to disable constant-pool-sharing.ll the code it tests has been
updated to use the IL logic.

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

12 years agoAdd a "moveInstr" method to LiveIntervals. This can be used to move instructions
Lang Hames [Fri, 27 Jan 2012 22:36:19 +0000 (22:36 +0000)]
Add a "moveInstr" method to LiveIntervals. This can be used to move instructions
around within a basic block while maintaining live-intervals.

Updated ScheduleTopDownLive in MachineScheduler.cpp to use the moveInstr API
when reordering MIs.

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

12 years agoBacking out ill-considered 'refactor'.
Lang Hames [Fri, 27 Jan 2012 21:43:32 +0000 (21:43 +0000)]
Backing out ill-considered 'refactor'.

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

12 years agoMove some duplicate loops in the coalescer into their own function.
Lang Hames [Fri, 27 Jan 2012 19:58:14 +0000 (19:58 +0000)]
Move some duplicate loops in the coalescer into their own function.

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

12 years agoIntel Syntax: Parse mem operand with seg reg. QWORD PTR FS:[320]
Devang Patel [Fri, 27 Jan 2012 19:48:28 +0000 (19:48 +0000)]
Intel Syntax: Parse mem operand with seg reg. QWORD PTR FS:[320]

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

12 years agoFix typo.
Jim Grosbach [Fri, 27 Jan 2012 18:35:03 +0000 (18:35 +0000)]
Fix typo.

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

12 years agoMove some patterns back near their instructions and use AddedComplexity to fix priori...
Craig Topper [Fri, 27 Jan 2012 07:09:40 +0000 (07:09 +0000)]
Move some patterns back near their instructions and use AddedComplexity to fix priority. Merge some patterns into their instruction definition.

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

12 years agoPhysreg dead defs should be handled too.
Lang Hames [Fri, 27 Jan 2012 03:20:42 +0000 (03:20 +0000)]
Physreg dead defs should be handled too.

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