Hal Finkel
8cf5de5774
Add a basic-block autovectorization pass.
...
This is the initial checkin of the basic-block autovectorization pass along with some supporting vectorization infrastructure.
Special thanks to everyone who helped review this code over the last several months (especially Tobias Grosser).
llvm-svn: 149468
2012-02-01 03:51:43 +00:00
Jim Grosbach
6186319c3f
Disable InstCombine unsafe folding bitcasts of calls w/ varargs.
...
Changing arguments from being passed as fixed to varargs is unsafe, as
the ABI may require they be handled differently (stack vs. register, for
example).
Remove two tests which rely on the bitcast being folded into the direct
call, which is exactly the transformation that's unsafe.
llvm-svn: 149457
2012-02-01 00:08:17 +00:00
Jim Grosbach
b4cc72d103
Tidy up. One more return type mismatch fix.
...
llvm-svn: 149452
2012-01-31 23:51:09 +00:00
Brendon Cahoon
d4d8487fea
Revert test commit
...
llvm-svn: 149446
2012-01-31 23:18:33 +00:00
Lenny Maiorani
e3f2427596
bz11794 : EarlyCSE stack overflow on long functions.
...
Make the EarlyCSE optimizer not use recursion to do a depth first iteration.
llvm-svn: 149445
2012-01-31 23:14:41 +00:00
Brendon Cahoon
9790c7b937
test commit, adding a blank space
...
llvm-svn: 149444
2012-01-31 23:13:42 +00:00
Kevin Enderby
cb876a7560
Fixed a crash in llvm-mc for Mach-O when a symbol difference expression uses a
...
symbol from an assignment. In this case the symbol did not have a fragment so
MCObjectWriter::IsSymbolRefDifferenceFullyResolved() should not have been
calling IsSymbolRefDifferenceFullyResolvedImpl() with a NULL fragment and should
just have returned false in that case.
llvm-svn: 149442
2012-01-31 23:02:57 +00:00
Bob Wilson
caefeeb04d
Add Triple::getMacOSXVersion to replace crufty code in the clang driver.
...
This new function provides a way to get the Mac OS X version number from
either generic "darwin" triples of macosx triples.
llvm-svn: 149438
2012-01-31 22:32:29 +00:00
Jakob Stoklund Olesen
22b91563a5
Don't assign a value to NUM_TARGET_NAMED_SUBREGS.
...
It was wrong and completely unused.
llvm-svn: 149433
2012-01-31 21:51:53 +00:00
Jakob Stoklund Olesen
6ce052d3b3
Move the composite map into CodeGenSubRegIndex.
...
Each SubRegIndex keeps track of how it composes.
llvm-svn: 149423
2012-01-31 21:44:11 +00:00
Jakob Stoklund Olesen
6ec7412170
Add a TableGen CodeGenSubRegIndex class.
...
This class is used to represent SubRegIndex instances instead of the raw
Record pointers that were used before.
No functional change intended.
llvm-svn: 149418
2012-01-31 20:57:55 +00:00
Jim Grosbach
2f211187f7
Refactor loop for better readability.
...
Excellent suggestion from Ben Kramer.
llvm-svn: 149417
2012-01-31 20:56:55 +00:00
Jim Grosbach
5a7c34d3ef
Add explanatory comment.
...
llvm-svn: 149416
2012-01-31 20:34:53 +00:00
Manuel Klimek
bd5c3cbb68
RefCountedBaseVPTR needs the IntrusiveRefCntPtrInfo as friend,
...
now that this handles the release / retain calls.
Adds a regression test for that bug (which is a compile-time
regression) and for the last two changes to the IntrusiveRefCntPtr,
especially tests for the memory leak due to copy construction of the
ref-counted object and ensuring that the traits are used for release /
retain calls.
llvm-svn: 149411
2012-01-31 19:58:34 +00:00
Jim Grosbach
655a744f5f
Tidy up. Trailing whitespace.
...
llvm-svn: 149408
2012-01-31 19:47:32 +00:00
Andrew Trick
d03ff2ba28
Obvious unnecessary loop removal. Follow through from previous checkin.
...
llvm-svn: 149398
2012-01-31 18:54:19 +00:00
Devang Patel
b8688eac99
Add assembler dialect attribute in asm parser which lets target specific asm parser change dialect on the fly.
...
llvm-svn: 149396
2012-01-31 18:14:05 +00:00
Rafael Espindola
f1c57f3bda
Regenerate configure.
...
llvm-svn: 149391
2012-01-31 17:18:47 +00:00
Francois Pichet
81cb90c91f
Fix BrainF compilation.
...
llvm-svn: 149375
2012-01-31 09:35:01 +00:00
Bill Wendling
0ebee7acc5
Increase the initial vector size to be equivalent to the size of the Deps
...
vector. This potentially saves a resizing.
llvm-svn: 149369
2012-01-31 07:04:52 +00:00
Bill Wendling
91826c63c8
Cache the size of the vector instead of calling .size() all over the place.
...
llvm-svn: 149368
2012-01-31 06:57:53 +00:00
Craig Topper
2b764de6ab
Remove pcmpgt/pcmpeq intrinsics as clang is not using them.
...
llvm-svn: 149367
2012-01-31 06:52:44 +00:00
Chris Lattner
a9b3505e9a
eliminate the "string" form of ConstantArray::get, using
...
ConstantDataArray::getString instead.
llvm-svn: 149365
2012-01-31 06:18:43 +00:00
Chris Lattner
c613633ed8
remove commented-out code.
...
llvm-svn: 149364
2012-01-31 06:17:26 +00:00
Chris Lattner
06407b2f81
with recent changes, ConstantArray is never a "string". Remove the associated
...
methods and constant fold the clients to false.
llvm-svn: 149362
2012-01-31 06:05:00 +00:00
Chris Lattner
3359d8c044
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.
...
llvm-svn: 149361
2012-01-31 06:03:46 +00:00
Andrew Trick
397912b1c0
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.
llvm-svn: 149360
2012-01-31 05:55:32 +00:00
Chris Lattner
63a482554f
fix a small oversight that broke the fhourstones app.
...
llvm-svn: 149357
2012-01-31 05:18:56 +00:00
Chris Lattner
7903530b71
remove the last vestiges of llvm::GetConstantStringInfo, in CodeGen.
...
llvm-svn: 149356
2012-01-31 05:09:17 +00:00
Chris Lattner
3ca194bce8
eliminate the last uses of GetConstantStringInfo from this file, I didn't realize I was that close...
...
llvm-svn: 149354
2012-01-31 04:54:27 +00:00
Chandler Carruth
a71c1f9470
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.
llvm-svn: 149353
2012-01-31 04:52:32 +00:00
Chris Lattner
96d5f62396
start moving SimplifyLibcalls over to getConstantStringInfo, which is
...
dramatically more efficient than GetConstantStringInfo.
llvm-svn: 149352
2012-01-31 04:43:11 +00:00
Chris Lattner
b463bd21fc
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.
llvm-svn: 149351
2012-01-31 04:42:22 +00:00
Chris Lattner
b4d65d2788
rework this logic to not depend on the last argument to GetConstantStringInfo,
...
which is going away.
llvm-svn: 149348
2012-01-31 04:39:22 +00:00
Chris Lattner
5547cb8346
don't emit a 1-byte object as a .fill. This is silly and causes
...
CodeGen/X86/global-sections.ll to fail with CDArray
llvm-svn: 149343
2012-01-31 03:39:24 +00:00
Chris Lattner
8f102298a0
use the right accessor for ConstantDataArray.
...
llvm-svn: 149342
2012-01-31 03:16:39 +00:00
Chris Lattner
1d52d79d31
fix asmwriting of ConstantDataArray to use the right element count,
...
simplify ConstantArray handling, since they can never be empty.
llvm-svn: 149341
2012-01-31 03:15:40 +00:00
Chris Lattner
054e412291
enhance logic to support ConstantDataArray.
...
llvm-svn: 149340
2012-01-31 02:55:06 +00:00
Bill Wendling
7761976036
Remove all references to the old EH.
...
There was always the current EH. -- Ministry of Truth
llvm-svn: 149335
2012-01-31 02:09:07 +00:00
Bill Wendling
76beba7841
Update test to new EH model.
...
llvm-svn: 149333
2012-01-31 02:05:13 +00:00
Bill Wendling
8402993dd4
Update test to new EH model.
...
llvm-svn: 149332
2012-01-31 02:04:20 +00:00
Bill Wendling
fadeb75339
Remove the now-dead llvm.eh.exception and llvm.eh.selector intrinsics.
...
llvm-svn: 149331
2012-01-31 01:58:48 +00:00
Bill Wendling
0e5559bc4d
s/getInnerUnwindDest/getInnerResumeDest/g
...
llvm-svn: 149328
2012-01-31 01:48:40 +00:00
Bill Wendling
0b1a8d62d4
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.
llvm-svn: 149326
2012-01-31 01:46:13 +00:00
Bill Wendling
a2a758eff6
Remove ivar which is identical to another ivar.
...
llvm-svn: 149323
2012-01-31 01:25:54 +00:00
Bill Wendling
cf0fa6b786
Remove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.
...
llvm-svn: 149322
2012-01-31 01:22:03 +00:00
Bill Wendling
1b3c45b027
Remove more dead functions.
...
llvm-svn: 149318
2012-01-31 01:18:21 +00:00
Bill Wendling
1be31fd0b1
s/getInnerUnwindDestNewEH/getInnerUnwindDest/g
...
llvm-svn: 149317
2012-01-31 01:15:59 +00:00
Bill Wendling
6a5ff9da71
Remove some unused, old-EH methods.
...
llvm-svn: 149316
2012-01-31 01:14:49 +00:00
Eli Friedman
b3c6efa558
Use the correct ShiftAmtTy for creating shifts after legalization. PR11881. Not committing a testcase because I think it will be too fragile.
...
llvm-svn: 149315
2012-01-31 01:08:03 +00:00