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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Chris Lattner [Fri, 27 Jan 2012 03:15:49 +0000 (03:15 +0000)]
smallvectorize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149117
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 27 Jan 2012 03:08:05 +0000 (03:08 +0000)]
continue making the world safe for ConstantDataVector. At this point,
we should (theoretically optimize and codegen ConstantDataVector as well
as ConstantVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149116
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Beaumont-Gay [Fri, 27 Jan 2012 02:31:29 +0000 (02:31 +0000)]
Unix line endings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149115
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 27 Jan 2012 02:02:24 +0000 (02:02 +0000)]
Place the GEP instructions nearer to the instructions which use them.
GEP instructions are there for the compiler and shouldn't really output much
code (if any at all). When a GEP is stored in the entry block, Fast ISel (for
one) will not know that it could fold it into further uses. For instance, inside
of the EH handling code. This results in a lot of unnecessary spills and loads
which bloat code and slows down pretty much everything.
<rdar://problem/
10694814>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149114
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 27 Jan 2012 01:47:28 +0000 (01:47 +0000)]
make sure the file's matching header is #include'd first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149113
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 27 Jan 2012 01:46:00 +0000 (01:46 +0000)]
Rewrite CanShareConstantPoolEntry to be implemented in terms of the
mid-level constant folding APIs instead of doing its own analysis.
This makes it more general (e.g. can now share a <2 x i64> with a
<4 x i32>) and avoid duplicating a bunch of logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149111
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 27 Jan 2012 01:44:03 +0000 (01:44 +0000)]
enhance constant folding to be able to constant fold bitcast of
ConstantVector's to integer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149110
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 27 Jan 2012 00:51:27 +0000 (00:51 +0000)]
Keep source location information for X86 MCFixup's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149106
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 27 Jan 2012 00:51:23 +0000 (00:51 +0000)]
Source information in 'expected relocatable expression' diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149105
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 27 Jan 2012 00:37:12 +0000 (00:37 +0000)]
Better user diagnostics for more ARM MachO relocation errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149102
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 27 Jan 2012 00:37:08 +0000 (00:37 +0000)]
Better diagnostic for malformed .org assembly directive.
Provide source line number information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149101
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Fri, 27 Jan 2012 00:05:42 +0000 (00:05 +0000)]
Rewrite instruction operands in AdjustCopiesBackFrom. Fixes PR11861.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149097
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 26 Jan 2012 23:47:45 +0000 (23:47 +0000)]
Tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149096
91177308-0d34-0410-b5e6-
96231b3b80d8