oota-llvm.git
13 years agoFix a DAG combiner assertion failure when constant folding BUILD_VECTORS.
Bob Wilson [Tue, 18 Oct 2011 17:34:47 +0000 (17:34 +0000)]
Fix a DAG combiner assertion failure when constant folding BUILD_VECTORS.

svn r139159 caused SelectionDAG::getConstant() to promote BUILD_VECTOR operands
with illegal types, even before type legalization.  For this testcase, that led
to one BUILD_VECTOR with i16 operands and another with promoted i32 operands,
which triggered the assertion.

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

13 years agoDon't exit just because some early commands fail. Use the -k flag when running the...
Bill Wendling [Tue, 18 Oct 2011 17:27:12 +0000 (17:27 +0000)]
Don't exit just because some early commands fail. Use the -k flag when running the checks.

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

13 years agoTests for 142365.
Jim Grosbach [Tue, 18 Oct 2011 17:23:34 +0000 (17:23 +0000)]
Tests for 142365.

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

13 years agoTidy up formatting.
Jim Grosbach [Tue, 18 Oct 2011 17:22:53 +0000 (17:22 +0000)]
Tidy up formatting.

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

13 years agoARM vqdmlal assembly parsing for the lane index operand.
Jim Grosbach [Tue, 18 Oct 2011 17:16:30 +0000 (17:16 +0000)]
ARM vqdmlal assembly parsing for the lane index operand.

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

13 years agoThumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it.
Jim Grosbach [Tue, 18 Oct 2011 17:09:35 +0000 (17:09 +0000)]
Thumb2 parsing of 'mov.w' gets the cc_out operand wrong. Add an alias for it.

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

13 years agoARM assembly parsing and encoding for VMOV.i64.
Jim Grosbach [Tue, 18 Oct 2011 16:18:11 +0000 (16:18 +0000)]
ARM assembly parsing and encoding for VMOV.i64.

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

13 years agoPTX: Fix disabling of MAD instruction selection
Justin Holewinski [Tue, 18 Oct 2011 13:39:20 +0000 (13:39 +0000)]
PTX: Fix disabling of MAD instruction selection

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

13 years agoFix a bunch of unused variable warnings when doing a release
Duncan Sands [Tue, 18 Oct 2011 12:44:00 +0000 (12:44 +0000)]
Fix a bunch of unused variable warnings when doing a release
build with gcc-4.6.

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

13 years agoCoding style cleanups. No functionality change.
Bill Wendling [Tue, 18 Oct 2011 07:40:22 +0000 (07:40 +0000)]
Coding style cleanups. No functionality change.

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

13 years agoRemove NaClMode
David Meyer [Tue, 18 Oct 2011 05:29:23 +0000 (05:29 +0000)]
Remove NaClMode

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

13 years agoAdd support for dynamic stack realignment when in thumb1 mode.
Chad Rosier [Tue, 18 Oct 2011 05:28:00 +0000 (05:28 +0000)]
Add support for dynamic stack realignment when in thumb1 mode.
rdar://10288916

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

13 years agoCommit test, capitalizing store... keep it simple.
Joe Abbey [Tue, 18 Oct 2011 04:44:36 +0000 (04:44 +0000)]
Commit test, capitalizing store... keep it simple.

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

13 years agoFix comment to refer to correct instruction
Hal Finkel [Tue, 18 Oct 2011 03:51:57 +0000 (03:51 +0000)]
Fix comment to refer to correct instruction

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

13 years agoFix misc warnings. Patch by Joe Abbey.
Eli Friedman [Tue, 18 Oct 2011 03:17:34 +0000 (03:17 +0000)]
Fix misc warnings.  Patch by Joe Abbey.

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

13 years agoBacking out patch. Will refactor to remove the AsmParser dependency on Target.
Lang Hames [Tue, 18 Oct 2011 00:23:49 +0000 (00:23 +0000)]
Backing out patch. Will refactor to remove the AsmParser dependency on Target.

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

13 years agoARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i32.
Jim Grosbach [Tue, 18 Oct 2011 00:22:00 +0000 (00:22 +0000)]
ARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i32.

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

13 years agoRevert "llvm-objdump: Add static symbol table dumping."
Michael J. Spencer [Tue, 18 Oct 2011 00:17:04 +0000 (00:17 +0000)]
Revert "llvm-objdump: Add static symbol table dumping."

This reverts commit 0c30d4e4f5f9110c5a67bd0ca84444dc58697596.

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

13 years agollvm-objdump: Add static symbol table dumping.
Michael J. Spencer [Mon, 17 Oct 2011 23:55:22 +0000 (23:55 +0000)]
llvm-objdump: Add static symbol table dumping.

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

13 years agoObject: Add some types to SymbolRef::Type.
Michael J. Spencer [Mon, 17 Oct 2011 23:55:06 +0000 (23:55 +0000)]
Object: Add some types to SymbolRef::Type.

Some of these can be true at the same time and there are a lot to add,
so this should be turned into a bitfield. Some of the other accessors
should probably be folded into this.

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

13 years agoObject: Add isSymbolAbsolute and getSymbolSection.
Michael J. Spencer [Mon, 17 Oct 2011 23:54:46 +0000 (23:54 +0000)]
Object: Add isSymbolAbsolute and getSymbolSection.

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

13 years agoObject: Add isSymbolWeak.
Michael J. Spencer [Mon, 17 Oct 2011 23:54:22 +0000 (23:54 +0000)]
Object: Add isSymbolWeak.

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

13 years agoObject/COFF: Expose more data in the public API.
Michael J. Spencer [Mon, 17 Oct 2011 23:53:56 +0000 (23:53 +0000)]
Object/COFF: Expose more data in the public API.

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

13 years agoObject: Implement casting for concrete classes.
Michael J. Spencer [Mon, 17 Oct 2011 23:53:37 +0000 (23:53 +0000)]
Object: Implement casting for concrete classes.

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

13 years agoEnable a few more NEON immediate tests.
Jim Grosbach [Mon, 17 Oct 2011 23:50:19 +0000 (23:50 +0000)]
Enable a few more NEON immediate tests.

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

13 years ago80-col.
Michael J. Spencer [Mon, 17 Oct 2011 23:37:43 +0000 (23:37 +0000)]
80-col.

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

13 years agoMinor style cleanup, no functionality change.
Nick Lewycky [Mon, 17 Oct 2011 23:27:36 +0000 (23:27 +0000)]
Minor style cleanup, no functionality change.

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

13 years agoRe-applying the target data layout verification patch from r142288, plus appropriate...
Lang Hames [Mon, 17 Oct 2011 23:24:48 +0000 (23:24 +0000)]
Re-applying the target data layout verification patch from r142288, plus appropriate CMake dependencies.
Thanks to Raphael Espindola for tracking down the CMake issues.

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

13 years agoARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i16.
Jim Grosbach [Mon, 17 Oct 2011 23:09:09 +0000 (23:09 +0000)]
ARM assembly parsing and encoding for VMOV/VMVN/VORR/VBIC.i16.

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

13 years agoAdd support for a new extension to the .file directive:
Nick Lewycky [Mon, 17 Oct 2011 23:05:28 +0000 (23:05 +0000)]
Add support for a new extension to the .file directive:

  .file filenumber "directory" "filename"

This removes one join+split of the directory+filename in MC internals. Because
bitcode files have independent fields for directory and filenames in debug info,
this patch may change the .o files written by existing .bc files.

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

13 years agoAdd a few FIXME comments.
Chad Rosier [Mon, 17 Oct 2011 22:54:23 +0000 (22:54 +0000)]
Add a few FIXME comments.

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

13 years agoTeach the ARC optimizer about the !clang.arc.copy_on_escape metadata
Dan Gohman [Mon, 17 Oct 2011 22:53:25 +0000 (22:53 +0000)]
Teach the ARC optimizer about the !clang.arc.copy_on_escape metadata
tag on objc_retainBlock calls, which indicates that they may be
optimized away. rdar://10211286.

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

13 years agoTidy up.
Jim Grosbach [Mon, 17 Oct 2011 22:41:42 +0000 (22:41 +0000)]
Tidy up.

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

13 years ago142288 broke the build:
Rafael Espindola [Mon, 17 Oct 2011 22:37:51 +0000 (22:37 +0000)]
142288 broke the build:

Linking CXX executable ../../bin/llvm-as
../../lib/libLLVMAsmParser.a(LLParser.cpp.o):/home/espindola/llvm/llvm/lib/AsmParser/LLParser.cpp:function llvm::LLParser::ParseTargetDefinition(): error: undefined reference to 'llvm::TargetData::parseSpecifier(llvm::StringRef, llvm::TargetData*)'
clang-3: error: linker command failed with exit code 1 (use -v to see invocation)

Revert "Validate target data layout strings."

This reverts commit 599d2d4c25d3aee63a21d9c67a88cd43bd971b7e.

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

13 years agoUpdate DebugInfoFinder to match recent debug info encoding changes.
Devang Patel [Mon, 17 Oct 2011 22:30:34 +0000 (22:30 +0000)]
Update DebugInfoFinder to match recent debug info encoding changes.

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

13 years agoNow Igor, throw the switch...give my creation life!
Bill Wendling [Mon, 17 Oct 2011 22:26:23 +0000 (22:26 +0000)]
Now Igor, throw the switch...give my creation life!

Use the custom inserter for the ARM setjmp intrinsics. Instead of creating the
SjLj dispatch table in IR, where it frequently violates serveral assumptions --
in particular assumptions made by the landingpad instruction about what can
branch to a landing pad and what cannot. Performing this in the back-end allows
us to violate these assumptions without the IR getting angry at us.

It also allows us to perform a small optimization. We can shove the address of
the dispatch's basic block into the function context and not have to add code
around the setjmp to check for the return value and jump to the dispatch.

Neat, huh?
<rdar://problem/10116753>

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

13 years agoARM NEON "vmov.i8" immediate assembly parsing and encoding.
Jim Grosbach [Mon, 17 Oct 2011 22:26:03 +0000 (22:26 +0000)]
ARM NEON "vmov.i8" immediate assembly parsing and encoding.

NEON immediates are "interesting". Start of the work to handle parsing them
in an 'as' compatible manner. Getting the matcher to play nicely with
these and the floating point immediates from VFP is an extra fun wrinkle.

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

13 years agoValidate target data layout strings.
Lang Hames [Mon, 17 Oct 2011 22:05:34 +0000 (22:05 +0000)]
Validate target data layout strings.
Invalid strings in asm files will result in parse errors. Invalid string literals passed to TargetData constructors will result in an assertion.

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

13 years agoWhen deleting a phi cycle after looking through copies, constrain the register
Cameron Zwarich [Mon, 17 Oct 2011 21:54:46 +0000 (21:54 +0000)]
When deleting a phi cycle after looking through copies, constrain the register
to match its final use.

With this change, all of test-suite compiles for Thumb2 with -verify-coalescing
enabled.

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

13 years agoFixed quoting on default data layout option.
Lang Hames [Mon, 17 Oct 2011 21:54:43 +0000 (21:54 +0000)]
Fixed quoting on default data layout option.

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

13 years agoForgot to add the project name to the 'svn ls' command.
Bill Wendling [Mon, 17 Oct 2011 21:45:07 +0000 (21:45 +0000)]
Forgot to add the project name to the 'svn ls' command.

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

13 years agoAdd message to svn mkdir command.
Bill Wendling [Mon, 17 Oct 2011 21:42:29 +0000 (21:42 +0000)]
Add message to svn mkdir command.

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

13 years agoRewrite most of MachODump to work through the generic libObject interfaces rather...
Owen Anderson [Mon, 17 Oct 2011 21:37:35 +0000 (21:37 +0000)]
Rewrite most of MachODump to work through the generic libObject interfaces rather than accessing the MachO internals directly.

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

13 years agoAdd an accessor to get the underlying MachO representation.
Owen Anderson [Mon, 17 Oct 2011 21:37:03 +0000 (21:37 +0000)]
Add an accessor to get the underlying MachO representation.

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

13 years agoUse a SmallVector for intrinsic argument types.
Benjamin Kramer [Mon, 17 Oct 2011 21:33:26 +0000 (21:33 +0000)]
Use a SmallVector for intrinsic argument types.

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

13 years agoDon't renumber the blocks here. This could cause problems later on if another
Bill Wendling [Mon, 17 Oct 2011 21:32:56 +0000 (21:32 +0000)]
Don't renumber the blocks here. This could cause problems later on if another
pass renumbers the blocks again.

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

13 years agoUse the correct predicate for determining if a branch is conditional or not.
Owen Anderson [Mon, 17 Oct 2011 21:21:44 +0000 (21:21 +0000)]
Use the correct predicate for determining if a branch is conditional or not.

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

13 years agoAdd support for the Objective-C personality function to the instruction
Bill Wendling [Mon, 17 Oct 2011 21:20:24 +0000 (21:20 +0000)]
Add support for the Objective-C personality function to the instruction
combining of the landingpad instruction. The ObjC personality function acts
almost identically to the C++ personality function. In particular, it uses
"null" as a "catch-all" value.

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

13 years agoPseudoinstructions should not be less constrained than the instruction they are
Cameron Zwarich [Mon, 17 Oct 2011 21:20:13 +0000 (21:20 +0000)]
Pseudoinstructions should not be less constrained than the instruction they are
lowered to. This fixes a lot of verifier failures on the test suite.

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

13 years agoMCOperand is pod-like.
Benjamin Kramer [Mon, 17 Oct 2011 21:18:03 +0000 (21:18 +0000)]
MCOperand is pod-like.

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

13 years agoTidy up organization.
Jim Grosbach [Mon, 17 Oct 2011 21:00:11 +0000 (21:00 +0000)]
Tidy up organization.

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

13 years agoFix handling of the From parameter in StringRef::find.
Benjamin Kramer [Mon, 17 Oct 2011 20:49:40 +0000 (20:49 +0000)]
Fix handling of the From parameter in StringRef::find.

Enable bounds checking to catch this kind of bug earlier.

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

13 years agoAdd a call to EmitSjLjDispatchBlock.
Bill Wendling [Mon, 17 Oct 2011 20:37:20 +0000 (20:37 +0000)]
Add a call to EmitSjLjDispatchBlock.

Once the intrinsics are marked as having a custom inserter, it will call this
method to emit the dispatch table into the machine function.

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

13 years agoRemove mention of llvm-gcc and add mention of dragonegg.
Bill Wendling [Mon, 17 Oct 2011 20:28:54 +0000 (20:28 +0000)]
Remove mention of llvm-gcc and add mention of dragonegg.

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

13 years agoAdd CHECKs and document PR11158.
Nadav Rotem [Mon, 17 Oct 2011 20:23:23 +0000 (20:23 +0000)]
Add CHECKs and document PR11158.

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

13 years agoFix improperly formed assert() call.
Jim Grosbach [Mon, 17 Oct 2011 20:22:59 +0000 (20:22 +0000)]
Fix improperly formed assert() call.

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

13 years agoObject: Fix redundant name.
Michael J. Spencer [Mon, 17 Oct 2011 20:19:29 +0000 (20:19 +0000)]
Object: Fix redundant name.

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

13 years agoConstraint register class with constrainRegClass() to CSE a virtual into another...
Evan Cheng [Mon, 17 Oct 2011 19:50:12 +0000 (19:50 +0000)]
Constraint register class with constrainRegClass() to CSE a virtual into another. rdar://10293289

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

13 years agostabalize tests by specifying the exact sse level
Nadav Rotem [Mon, 17 Oct 2011 19:45:38 +0000 (19:45 +0000)]
stabalize tests by specifying the exact sse level

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

13 years agoAdd definitions of conditional moves with 64-bit operands. Comment out code for
Akira Hatanaka [Mon, 17 Oct 2011 18:53:29 +0000 (18:53 +0000)]
Add definitions of conditional moves with 64-bit operands. Comment out code for
expanding conditional moves, which is not needed since architectures that lack
support for conditional moves have been removed.

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

13 years agoRevert change to function alignment b/c existing logic was fine
Hal Finkel [Mon, 17 Oct 2011 18:53:03 +0000 (18:53 +0000)]
Revert change to function alignment b/c existing logic was fine

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

13 years agoRemoved set, but unused variables.
Chad Rosier [Mon, 17 Oct 2011 18:48:30 +0000 (18:48 +0000)]
Removed set, but unused variables.

Patch by Joe Abbey <jabbey@arxan.com>.

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

13 years agoSuppress partial retain+release elimination when there's a
Dan Gohman [Mon, 17 Oct 2011 18:48:25 +0000 (18:48 +0000)]
Suppress partial retain+release elimination when there's a
possibility that it will span multiple CFG diamonds/triangles which
could have different controlling predicates.  rdar://10282956

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

13 years agoCorrect over-zealous removal of hack.
Bill Wendling [Mon, 17 Oct 2011 18:43:40 +0000 (18:43 +0000)]
Correct over-zealous removal of hack.

Some code want to check that *any* call within a function has the 'returns
twice' attribute, not just that the current function has one.

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

13 years agoMove class and instruction definitions for conditional moves to a seperate file.
Akira Hatanaka [Mon, 17 Oct 2011 18:43:19 +0000 (18:43 +0000)]
Move class and instruction definitions for conditional moves to a seperate file.

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

13 years agoRevert change made in r142205.
Akira Hatanaka [Mon, 17 Oct 2011 18:33:24 +0000 (18:33 +0000)]
Revert change made in r142205.

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

13 years agoRedefine count-leading 0s and 1s instructions.
Akira Hatanaka [Mon, 17 Oct 2011 18:26:37 +0000 (18:26 +0000)]
Redefine count-leading 0s and 1s instructions.

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

13 years agoTemporarily XFAIL waiting for a fix.
Bill Wendling [Mon, 17 Oct 2011 18:25:32 +0000 (18:25 +0000)]
Temporarily XFAIL waiting for a fix.

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

13 years agoRedefine mfhi/lo and mthi/lo instructions.
Akira Hatanaka [Mon, 17 Oct 2011 18:24:15 +0000 (18:24 +0000)]
Redefine mfhi/lo and mthi/lo instructions.

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

13 years agoAdd comments to TargetLowering.h indicating that the set*Alignment functions take...
Hal Finkel [Mon, 17 Oct 2011 18:23:13 +0000 (18:23 +0000)]
Add comments to TargetLowering.h indicating that the set*Alignment functions take arguments in log2(bytes)

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

13 years agoNow that we have the ReturnsTwice function attribute, this method is
Bill Wendling [Mon, 17 Oct 2011 18:22:52 +0000 (18:22 +0000)]
Now that we have the ReturnsTwice function attribute, this method is
obsolete. Check the attribute instead.
<rdar://problem/8031714>

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

13 years agoRedefine multiply and divide instructions.
Akira Hatanaka [Mon, 17 Oct 2011 18:21:24 +0000 (18:21 +0000)]
Redefine multiply and divide instructions.

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

13 years agoAdd definition of a base class for logical shift/rotate instructions with two
Akira Hatanaka [Mon, 17 Oct 2011 18:17:58 +0000 (18:17 +0000)]
Add definition of a base class for logical shift/rotate instructions with two
source registers and redefine 32-bit and 64-bit instructions.

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

13 years agoRemove >80-col line and unicode
Hal Finkel [Mon, 17 Oct 2011 18:10:08 +0000 (18:10 +0000)]
Remove >80-col line and unicode

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

13 years agoAdd definition of a base class for logical shift/rotate immediate instructions
Akira Hatanaka [Mon, 17 Oct 2011 18:06:56 +0000 (18:06 +0000)]
Add definition of a base class for logical shift/rotate immediate instructions
and have 32-bit and 64-bit instructions derive from it.

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

13 years agoRemoved set, but unused variable.
Chad Rosier [Mon, 17 Oct 2011 18:01:59 +0000 (18:01 +0000)]
Removed set, but unused variable.

Patch by Joe Abbey <jabbey@arxan.com>.

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

13 years agoAdd definition of immZExt5_64 and redefine immZExt5 as an ImmLeaf.
Akira Hatanaka [Mon, 17 Oct 2011 18:01:00 +0000 (18:01 +0000)]
Add definition of immZExt5_64 and redefine immZExt5 as an ImmLeaf.

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

13 years agoFix CMake build.
Michael J. Spencer [Mon, 17 Oct 2011 17:50:39 +0000 (17:50 +0000)]
Fix CMake build.

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

13 years agoIt is safe to speculate load from GOT. This fixes performance regression caused by...
Devang Patel [Mon, 17 Oct 2011 17:35:01 +0000 (17:35 +0000)]
It is safe to speculate load from GOT. This fixes performance regression caused by r141689.

Radar 10281206.

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

13 years agoAdmonish that MI is not IR and virtual registers have constraints.
Jakob Stoklund Olesen [Mon, 17 Oct 2011 17:33:39 +0000 (17:33 +0000)]
Admonish that MI is not IR and virtual registers have constraints.

In machine code, you can't just replaceRegWith() the same way you can
replaceAllUsesWith() in IR.  Virtual registers may have different
register classes that need to be merged first.

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

13 years agosvn mv Target/ARM/ARMGlobalMerge.cpp Transforms/Scalar/GlobalMerge.cpp
Devang Patel [Mon, 17 Oct 2011 17:17:43 +0000 (17:17 +0000)]
svn mv Target/ARM/ARMGlobalMerge.cpp Transforms/Scalar/GlobalMerge.cpp

There is no reason to have simple IR level pass in lib/Target.

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

13 years agollvm-objdump: Add -s, which prints the contents of each section.
Michael J. Spencer [Mon, 17 Oct 2011 17:13:22 +0000 (17:13 +0000)]
llvm-objdump: Add -s, which prints the contents of each section.

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

13 years agollvm-objdump: Add tests.
Michael J. Spencer [Mon, 17 Oct 2011 17:13:05 +0000 (17:13 +0000)]
llvm-objdump: Add tests.

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

13 years agoInstructions for Book E PPC should be word aligned, set function alignment to reflect...
Hal Finkel [Mon, 17 Oct 2011 17:01:41 +0000 (17:01 +0000)]
Instructions for Book E PPC should be word aligned, set function alignment to reflect this

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

13 years agoFix unused variable warning in the rare circumstance that we have no feature-dependen...
Owen Anderson [Mon, 17 Oct 2011 16:56:47 +0000 (16:56 +0000)]
Fix unused variable warning in the rare circumstance that we have no feature-dependent instructions.

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

13 years agoPick low-hanging MatchEntry shrinkage fruit.
Benjamin Kramer [Mon, 17 Oct 2011 16:18:09 +0000 (16:18 +0000)]
Pick low-hanging MatchEntry shrinkage fruit.

Shaves 200k off Release-Asserts clang binaries on i386.

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

13 years agouse FileCheck and not grep in new tests
Hal Finkel [Mon, 17 Oct 2011 16:01:41 +0000 (16:01 +0000)]
use FileCheck and not grep in new tests

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

13 years agoDon't download and compile compiler-rt, libcxx, and libcxxabi by default.
Bill Wendling [Mon, 17 Oct 2011 08:41:20 +0000 (08:41 +0000)]
Don't download and compile compiler-rt, libcxx, and libcxxabi by default.

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

13 years agoClean the triple, add check lines.
Nadav Rotem [Mon, 17 Oct 2011 07:07:51 +0000 (07:07 +0000)]
Clean the triple, add check lines.

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

13 years agoPreviously v2i32 vectors were legalized to v4i32. Now, they are legalized to
Nadav Rotem [Mon, 17 Oct 2011 06:59:01 +0000 (06:59 +0000)]
Previously v2i32 vectors were legalized to v4i32. Now, they are legalized to
v2i64. These tests do not check MMX nor zmoving into them.

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

13 years agoDon't use inline assembly in 64-bit Visual Studio. Unfortunately, this means that...
Craig Topper [Mon, 17 Oct 2011 05:33:10 +0000 (05:33 +0000)]
Don't use inline assembly in 64-bit Visual Studio. Unfortunately, this means that cpuid leaf 7 can't be queried on versions of Visual Studio earlier than VS 2008 SP1. Fixes PR11147.

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

13 years agoAdd comment explaining that the order of processing doesn't matter here.
Bill Wendling [Mon, 17 Oct 2011 05:25:09 +0000 (05:25 +0000)]
Add comment explaining that the order of processing doesn't matter here.

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

13 years agoUpdate to disable asserts. Build a phase 3 compiler, and compare phase 2 files agains...
Bill Wendling [Mon, 17 Oct 2011 04:46:54 +0000 (04:46 +0000)]
Update to disable asserts. Build a phase 3 compiler, and compare phase 2 files against phase 3.

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

13 years agoTest case for CanLowerReturn fix (r141981)
Hal Finkel [Mon, 17 Oct 2011 04:03:59 +0000 (04:03 +0000)]
Test case for CanLowerReturn fix (r141981)

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

13 years agoAdd PPC 440 scheduler and some associated tests (new files)
Hal Finkel [Mon, 17 Oct 2011 04:03:55 +0000 (04:03 +0000)]
Add PPC 440 scheduler and some associated tests (new files)

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

13 years agoAdd PPC 440 scheduler and some associated tests
Hal Finkel [Mon, 17 Oct 2011 04:03:49 +0000 (04:03 +0000)]
Add PPC 440 scheduler and some associated tests

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

13 years agoAdd a routine to swap branch instruction operands, and update any
Chandler Carruth [Mon, 17 Oct 2011 01:11:57 +0000 (01:11 +0000)]
Add a routine to swap branch instruction operands, and update any
profile metadata at the same time. Use it to preserve metadata attached
to a branch when re-writing it in InstCombine.

Add metadata to the canonicalize_branch InstCombine test, and check that
it is tranformed correctly.

Reviewed by Nick Lewycky!

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

13 years agoOverhaul the 'test-release' script.
Bill Wendling [Sun, 16 Oct 2011 22:44:08 +0000 (22:44 +0000)]
Overhaul the 'test-release' script.

This removes support for building llvm-gcc. It will eventually add support for
building other projects.

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

13 years agoDelete a dead member. Dunno if this was ever used, but the current code
Chandler Carruth [Sun, 16 Oct 2011 22:27:54 +0000 (22:27 +0000)]
Delete a dead member. Dunno if this was ever used, but the current code
directly manipulates the weights inside of the BranchProbabilityInfo
that is passed in.

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

13 years agoAdd a proper LLVM banner to this file.
Chandler Carruth [Sun, 16 Oct 2011 22:15:07 +0000 (22:15 +0000)]
Add a proper LLVM banner to this file.

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