Craig Topper
9cdb8bdf04
Don't create VBROADCAST nodes if any nodes use the chain result from the load. Fixes PR11900.
...
llvm-svn: 149478
2012-02-01 06:51:58 +00:00
NAKAMURA Takumi
e1d61f666b
BBVectorize.cpp: Try to fix MSVC build. map::iterator and multimap::iterator are incompatible.
...
llvm-svn: 149475
2012-02-01 06:11:58 +00:00
Hal Finkel
8a3aebe5e0
A few of the changes suggested in code review (by Nick Lewycky)
...
llvm-svn: 149472
2012-02-01 05:51:45 +00:00
Argyrios Kyrtzidis
17c981a45b
Revert Chris' commits up to r149348 that started causing VMCoreTests unit test to fail.
...
These are:
r149348
r149351
r149352
r149354
r149356
r149357
r149361
r149362
r149364
r149365
llvm-svn: 149470
2012-02-01 04:51:17 +00:00
Hal Finkel
c34e51132c
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
9fa0481569
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
a2147ce313
Tidy up. One more return type mismatch fix.
...
llvm-svn: 149452
2012-01-31 23:51:09 +00:00
Lenny Maiorani
8d670b8f93
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
Kevin Enderby
e1a12cf3ee
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
aa30aff4f7
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
Jim Grosbach
44091c2f10
Refactor loop for better readability.
...
Excellent suggestion from Ben Kramer.
llvm-svn: 149417
2012-01-31 20:56:55 +00:00
Jim Grosbach
b4d3a6af97
Add explanatory comment.
...
llvm-svn: 149416
2012-01-31 20:34:53 +00:00
Andrew Trick
25c7b83a4b
Obvious unnecessary loop removal. Follow through from previous checkin.
...
llvm-svn: 149398
2012-01-31 18:54:19 +00:00
Devang Patel
a173ee56fd
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
Bill Wendling
e5f4a6d904
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
8a33312948
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
b85e40f738
Remove pcmpgt/pcmpeq intrinsics as clang is not using them.
...
llvm-svn: 149367
2012-01-31 06:52:44 +00:00
Chris Lattner
f1179025ae
eliminate the "string" form of ConstantArray::get, using
...
ConstantDataArray::getString instead.
llvm-svn: 149365
2012-01-31 06:18:43 +00:00
Chris Lattner
8ea967d050
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
Andrew Trick
2b3c187489
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
06d673678e
fix a small oversight that broke the fhourstones app.
...
llvm-svn: 149357
2012-01-31 05:18:56 +00:00
Chris Lattner
997348e9fe
remove the last vestiges of llvm::GetConstantStringInfo, in CodeGen.
...
llvm-svn: 149356
2012-01-31 05:09:17 +00:00
Chris Lattner
9e4b8726f8
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
b90c102a52
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
8193b06e44
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
108423a94a
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
983005f51b
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
0d3785e165
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
3a565d6241
use the right accessor for ConstantDataArray.
...
llvm-svn: 149342
2012-01-31 03:16:39 +00:00
Chris Lattner
9c181f660c
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
fe741769dd
enhance logic to support ConstantDataArray.
...
llvm-svn: 149340
2012-01-31 02:55:06 +00:00
Bill Wendling
8d9d1a0022
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
3fd879dde2
s/getInnerUnwindDest/getInnerResumeDest/g
...
llvm-svn: 149328
2012-01-31 01:48:40 +00:00
Bill Wendling
a4237652d2
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
ea6e935e95
Remove ivar which is identical to another ivar.
...
llvm-svn: 149323
2012-01-31 01:25:54 +00:00
Bill Wendling
0c2d82b942
Remove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.
...
llvm-svn: 149322
2012-01-31 01:22:03 +00:00
Bill Wendling
7778e6d818
Remove more dead functions.
...
llvm-svn: 149318
2012-01-31 01:18:21 +00:00
Bill Wendling
803d6b1b0c
s/getInnerUnwindDestNewEH/getInnerUnwindDest/g
...
llvm-svn: 149317
2012-01-31 01:15:59 +00:00
Bill Wendling
621699de22
Remove some unused, old-EH methods.
...
llvm-svn: 149316
2012-01-31 01:14:49 +00:00
Eli Friedman
18a4c31525
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
Bill Wendling
518a205d0a
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.
llvm-svn: 149314
2012-01-31 01:05:20 +00:00
Bill Wendling
ce0c229234
Formatting cleanups. No functionality change.
...
llvm-svn: 149312
2012-01-31 01:01:16 +00:00
Bill Wendling
f3cae51490
Remove no-longer-useful dyn_casts and pals.
...
llvm-svn: 149307
2012-01-31 00:56:53 +00:00
Bill Wendling
bd7ed6fe7c
Add a constified getLandingPad() method.
...
llvm-svn: 149303
2012-01-31 00:26:24 +00:00
Kostya Serebryany
22ddcfd2df
[asan] fix the ObjC support (asan Issue #33 )
...
llvm-svn: 149300
2012-01-30 23:50:10 +00:00
Chandler Carruth
2c469ff14a
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.
llvm-svn: 149299
2012-01-30 23:47:44 +00:00
Evan Cheng
4e7992eeba
PR11834: Use macros which are defined on Windows. Patch by Marina Yatsina.
...
llvm-svn: 149294
2012-01-30 23:10:32 +00:00
Devang Patel
7cdb2ff6b5
Intel syntax. Adjust special code, used to recognize cmp<comparison code>{ss,sd,ps,pd}, for intel syntax.
...
llvm-svn: 149291
2012-01-30 22:47:12 +00:00
Chad Rosier
6a0baa8f09
Typo.
...
llvm-svn: 149289
2012-01-30 22:44:13 +00:00
Chad Rosier
41003f819c
Typo.
...
llvm-svn: 149275
2012-01-30 21:13:22 +00:00