oota-llvm.git
14 years agoAdd FPTrunc, fix some bugs where I forgot to update the value map.
Eric Christopher [Thu, 9 Sep 2010 20:26:31 +0000 (20:26 +0000)]
Add FPTrunc, fix some bugs where I forgot to update the value map.

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

14 years agoRevert r113439, which relaxed the requirement that loops containing calls cannot...
Owen Anderson [Thu, 9 Sep 2010 20:02:23 +0000 (20:02 +0000)]
Revert r113439, which relaxed the requirement that loops containing calls cannot be unrolled.  After some discussion,
there seems to be a better way to achieve the same effect.

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

14 years agor113526 introduced an unintended change to the loop unrolling threshold. Revert it.
Owen Anderson [Thu, 9 Sep 2010 19:11:57 +0000 (19:11 +0000)]
r113526 introduced an unintended change to the loop unrolling threshold.  Revert it.

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

14 years agoFix typo in code to cap the loop code size reduction calculation.
Owen Anderson [Thu, 9 Sep 2010 19:08:59 +0000 (19:08 +0000)]
Fix typo in code to cap the loop code size reduction calculation.

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

14 years agoUse code-size reduction metrics to estimate the amount of savings we'll get when...
Owen Anderson [Thu, 9 Sep 2010 19:07:31 +0000 (19:07 +0000)]
Use code-size reduction metrics to estimate the amount of savings we'll get when we unroll a loop.
Next step is to recalculate the threshold values given this new heuristic.

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

14 years agoBasic FP->Int, Int->FP conversions.
Eric Christopher [Thu, 9 Sep 2010 18:54:59 +0000 (18:54 +0000)]
Basic FP->Int, Int->FP conversions.

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

14 years agoAdd one more pattern to fallback movddup
Bruno Cardoso Lopes [Thu, 9 Sep 2010 18:48:34 +0000 (18:48 +0000)]
Add one more pattern to fallback movddup

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

14 years agoExtend the getDependence query with support for PHI translation.
Dan Gohman [Thu, 9 Sep 2010 18:37:31 +0000 (18:37 +0000)]
Extend the getDependence query with support for PHI translation.

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

14 years agoAdd a getPointerOperand() helper function to VAArgInst, for consistency
Dan Gohman [Thu, 9 Sep 2010 18:32:40 +0000 (18:32 +0000)]
Add a getPointerOperand() helper function to VAArgInst, for consistency
with LoadInst and StoreInst.

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

14 years agoFor each instruction itinerary class, specify the number of micro-ops each
Evan Cheng [Thu, 9 Sep 2010 18:18:55 +0000 (18:18 +0000)]
For each instruction itinerary class, specify the number of micro-ops each
instruction in the class would be decoded to. Or zero if the number of
uOPs must be determined dynamically.

This will be used to determine the cost-effectiveness of predicating a
micro-coded instruction.

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

14 years agoFix this comment.
Dan Gohman [Thu, 9 Sep 2010 18:04:22 +0000 (18:04 +0000)]
Fix this comment.

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

14 years agoMCELF: Write relocation fragments in the right endian.
Benjamin Kramer [Thu, 9 Sep 2010 18:01:29 +0000 (18:01 +0000)]
MCELF: Write relocation fragments in the right endian.

- This code is gross, but does the job for now.

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

14 years agoMake ELF OS ABI dependent on the OS from target triple.
Roman Divacky [Thu, 9 Sep 2010 17:57:50 +0000 (17:57 +0000)]
Make ELF OS ABI dependent on the OS from target triple.

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

14 years agobuild: Allow subdir Makefiles to provide an alternate location for the SRCDIR
Daniel Dunbar [Thu, 9 Sep 2010 17:38:11 +0000 (17:38 +0000)]
build: Allow subdir Makefiles to provide an alternate location for the SRCDIR
Makefile, which can be used to allow building out of tree sources.

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

14 years agoMove remaining MMX instructions from SSE to MMX.
Dale Johannesen [Thu, 9 Sep 2010 17:13:07 +0000 (17:13 +0000)]
Move remaining MMX instructions from SSE to MMX.

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

14 years agoRefactor code-size reduction estimation methods out of InlineCostAnalyzer and into...
Owen Anderson [Thu, 9 Sep 2010 16:56:42 +0000 (16:56 +0000)]
Refactor code-size reduction estimation methods out of InlineCostAnalyzer and into CodeMetrics.  They
don't use any InlineCostAnalyzer state, and are useful for other clients who don't necessarily want to use
all of InlineCostAnalyzer's logic, some of which is fairly inlining-specific.

No intended functionality change.

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

14 years agoMC: Give a (lame) hard error if a .org directive would create an unreasonably
Daniel Dunbar [Thu, 9 Sep 2010 16:23:33 +0000 (16:23 +0000)]
MC: Give a (lame) hard error if a .org directive would create an unreasonably
large object file (> 1GB).

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

14 years agotests: XFAIL a handful of tests on the vg_leak builder, so we can get back to
Daniel Dunbar [Thu, 9 Sep 2010 15:50:19 +0000 (15:50 +0000)]
tests: XFAIL a handful of tests on the vg_leak builder, so we can get back to
green.

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

14 years agoprojects: Don't try to build libcxx if one happens to have it checked out into
Daniel Dunbar [Thu, 9 Sep 2010 15:49:32 +0000 (15:49 +0000)]
projects: Don't try to build libcxx if one happens to have it checked out into
llvm/projects.

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

14 years agoAdd an elf-dumper utility.
Benjamin Kramer [Thu, 9 Sep 2010 15:00:41 +0000 (15:00 +0000)]
Add an elf-dumper utility.

- Output format and some of the code stolen from macho-dump.
- Somewhat incomplete and probably buggy.
- Comes with a very basic test.

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

14 years agolib/System/Host.cpp: 7bit-ize. Eliminate "TM" and "(R)" in comments.
NAKAMURA Takumi [Thu, 9 Sep 2010 13:30:48 +0000 (13:30 +0000)]
lib/System/Host.cpp: 7bit-ize. Eliminate "TM" and "(R)" in comments.

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

14 years agoGet rid of the last use of -m64 in FrontendC. This solution
Duncan Sands [Thu, 9 Sep 2010 12:57:29 +0000 (12:57 +0000)]
Get rid of the last use of -m64 in FrontendC.  This solution
of checking for either 4 or 8 is not very satisfactory, but
it would catch the original problem (an alignment of 1).

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

14 years agoAnother test that uses -m64. Here too it looks like it can be
Duncan Sands [Thu, 9 Sep 2010 12:48:04 +0000 (12:48 +0000)]
Another test that uses -m64.  Here too it looks like it can be
removed.  Not that the XTARGET wasn't doing anything since it
does nothing without an accompanying XFAIL.

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

14 years agoOn i386, llvm-gcc cannot be assumed to support -m64. Since these
Duncan Sands [Thu, 9 Sep 2010 12:43:44 +0000 (12:43 +0000)]
On i386, llvm-gcc cannot be assumed to support -m64.  Since these
tests pass here (i686-linux and x86-64-linux) without -m64, simply
remove the -m64.

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

14 years agoThis script is executable.
Duncan Sands [Thu, 9 Sep 2010 09:37:54 +0000 (09:37 +0000)]
This script is executable.

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

14 years agoSilence compiler warning.
Kalle Raiskila [Thu, 9 Sep 2010 07:30:15 +0000 (07:30 +0000)]
Silence compiler warning.

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

14 years agoFix NEON VLD pseudo instruction itineraries that were incorrectly copied from
Bob Wilson [Thu, 9 Sep 2010 05:40:26 +0000 (05:40 +0000)]
Fix NEON VLD pseudo instruction itineraries that were incorrectly copied from
the VST pseudos.  The VLD/VST scheduling still needs work (see pr6722), but
at least we shouldn't confuse the loads with the stores.

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

14 years agoNuke whitespace and fix some indenting.
Eric Christopher [Thu, 9 Sep 2010 01:06:51 +0000 (01:06 +0000)]
Nuke whitespace and fix some indenting.

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

14 years agoMove most MMX instructions (defined as anything that
Dale Johannesen [Thu, 9 Sep 2010 01:02:39 +0000 (01:02 +0000)]
Move most MMX instructions (defined as anything that
uses MMX, even if it also uses other things) from InstrSSE
into InstrMMX.  No (intended) functional change.

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

14 years agoHandle 64-bit floating point binops as well.
Eric Christopher [Thu, 9 Sep 2010 01:02:03 +0000 (01:02 +0000)]
Handle 64-bit floating point binops as well.

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

14 years agoBasic 32-bit FP operations.
Eric Christopher [Thu, 9 Sep 2010 00:53:57 +0000 (00:53 +0000)]
Basic 32-bit FP operations.

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

14 years agoFor double-spaced VLD3/VLD4 instructions, copy the explicit super-register use
Bob Wilson [Thu, 9 Sep 2010 00:38:32 +0000 (00:38 +0000)]
For double-spaced VLD3/VLD4 instructions, copy the explicit super-register use
operand from the pseudo instruction to the new instruction as an implicit use.
This will preserve any other flags (e.g., kill) on the operand.

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

14 years agoHandle float->double extension.
Eric Christopher [Thu, 9 Sep 2010 00:26:48 +0000 (00:26 +0000)]
Handle float->double extension.

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

14 years agoRewrite TargetMaterializeConstant splitting it out into two functions
Eric Christopher [Thu, 9 Sep 2010 00:19:41 +0000 (00:19 +0000)]
Rewrite TargetMaterializeConstant splitting it out into two functions
for integer and fp constants. Implement todo to use vfp3 instructions
to materialize easy constants if we can.

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

14 years agoSimplify copying over operands from pseudo NEON load/store instructions.
Bob Wilson [Thu, 9 Sep 2010 00:15:32 +0000 (00:15 +0000)]
Simplify copying over operands from pseudo NEON load/store instructions.
For VLD3/VLD4 with double-spaced registers, add the implicit use of the
super register for both the instruction loading the even registers and the
instruction loading the odd registers.

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

14 years agoRearrange for better alignment and less padding
Jakob Stoklund Olesen [Wed, 8 Sep 2010 23:54:00 +0000 (23:54 +0000)]
Rearrange for better alignment and less padding

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

14 years agoClean up a comment.
Bob Wilson [Wed, 8 Sep 2010 23:39:54 +0000 (23:39 +0000)]
Clean up a comment.

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

14 years agoVery basic compare support.
Eric Christopher [Wed, 8 Sep 2010 23:13:45 +0000 (23:13 +0000)]
Very basic compare support.

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

14 years agoRelax the "don't unroll loops containing calls" rule. Instead, when a loop contains...
Owen Anderson [Wed, 8 Sep 2010 23:10:07 +0000 (23:10 +0000)]
Relax the "don't unroll loops containing calls" rule.  Instead, when a loop contains a call, lower the
unrolling threshold to the optimize-for-size threshold.  Basically, for loops containing calls, unrolling
can still be profitable as long as the loop is REALLY small.

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

14 years agoDelete dead code.
Eric Christopher [Wed, 8 Sep 2010 22:58:35 +0000 (22:58 +0000)]
Delete dead code.

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

14 years agoFix LDM_RET schedule itinery.
Evan Cheng [Wed, 8 Sep 2010 22:57:08 +0000 (22:57 +0000)]
Fix LDM_RET schedule itinery.

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

14 years agofix rdar://8407548, I missed the commuted form of xchg/test without a suffix.
Chris Lattner [Wed, 8 Sep 2010 22:27:05 +0000 (22:27 +0000)]
fix rdar://8407548, I missed the commuted form of xchg/test without a suffix.

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

14 years agofix wonky formatting.
Chris Lattner [Wed, 8 Sep 2010 22:22:10 +0000 (22:22 +0000)]
fix wonky formatting.

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

14 years agoGeneralize instcombine's support for combining multiple bit checks into a single...
Owen Anderson [Wed, 8 Sep 2010 22:16:17 +0000 (22:16 +0000)]
Generalize instcombine's support for combining multiple bit checks into a single test.  Patch by Dirk Steinke!

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

14 years agofix bugs in push/pop segment support, rdar://8407242
Chris Lattner [Wed, 8 Sep 2010 22:13:08 +0000 (22:13 +0000)]
fix bugs in push/pop segment support, rdar://8407242

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

14 years agoAdd intrinsic-based patterns for MMX PINSRW and PEXTRW.
Dale Johannesen [Wed, 8 Sep 2010 22:08:40 +0000 (22:08 +0000)]
Add intrinsic-based patterns for MMX PINSRW and PEXTRW.

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

14 years agoMake the loads/stores match the type we really want to store.
Eric Christopher [Wed, 8 Sep 2010 21:49:50 +0000 (21:49 +0000)]
Make the loads/stores match the type we really want to store.

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

14 years agoRemove dead code and data.
Jakob Stoklund Olesen [Wed, 8 Sep 2010 21:21:28 +0000 (21:21 +0000)]
Remove dead code and data.

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

14 years agoCheck in forgotten file. Should fix build.
Dale Johannesen [Wed, 8 Sep 2010 21:09:48 +0000 (21:09 +0000)]
Check in forgotten file.  Should fix build.

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

14 years agoSlight cleanup, use only one form of MMXI_binop_rm_int.
Dale Johannesen [Wed, 8 Sep 2010 20:54:00 +0000 (20:54 +0000)]
Slight cleanup, use only one form of MMXI_binop_rm_int.

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

14 years agoCMake: Use the svn revision information from git-svn if available.
Michael J. Spencer [Wed, 8 Sep 2010 20:49:40 +0000 (20:49 +0000)]
CMake: Use the svn revision information from git-svn if available.

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

14 years agoRemove --with-gxx-include-dir option because it's causing problems on non-Darwin...
Bill Wendling [Wed, 8 Sep 2010 20:21:11 +0000 (20:21 +0000)]
Remove --with-gxx-include-dir option because it's causing problems on non-Darwin platforms.

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

14 years agoRe-enable usage of the ARM base pointer. r113394 fixed the known failures.
Jim Grosbach [Wed, 8 Sep 2010 20:12:02 +0000 (20:12 +0000)]
Re-enable usage of the ARM base pointer. r113394 fixed the known failures.
Re-running some nightly testers w/ it enabled to verify.

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

14 years agoAdd an option to not test ObjC for those platforms which don't support it.
Bill Wendling [Wed, 8 Sep 2010 20:09:14 +0000 (20:09 +0000)]
Add an option to not test ObjC for those platforms which don't support it.

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

14 years agoCorrect variable name.
Duncan Sands [Wed, 8 Sep 2010 19:58:15 +0000 (19:58 +0000)]
Correct variable name.

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

14 years agoFix errant fall-throughs causing the base pointer to be used when the frame
Jim Grosbach [Wed, 8 Sep 2010 19:55:28 +0000 (19:55 +0000)]
Fix errant fall-throughs causing the base pointer to be used when the frame
pointer was intended. rdar://8401980

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

14 years agoMove the number of cpus logic to somewhere more logical.
Duncan Sands [Wed, 8 Sep 2010 19:50:25 +0000 (19:50 +0000)]
Move the number of cpus logic to somewhere more logical.

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

14 years agoRemove ssp from this test.
Eric Christopher [Wed, 8 Sep 2010 19:32:34 +0000 (19:32 +0000)]
Remove ssp from this test.

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

14 years agoAdd intrinsic forms of mmx<->sse conversions. Notes:
Dale Johannesen [Wed, 8 Sep 2010 19:15:38 +0000 (19:15 +0000)]
Add intrinsic forms of mmx<->sse conversions.  Notes:
Omission of memory form of PI2PD is intentional; this
does not use an MMX register and does not put the chip
into MMX mode (PI2PS, oddly enough, does).
Operands of PI2PS follow the gcc builtin, not Intel.

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

14 years agoRewrite TargetMaterializeConstant.
Eric Christopher [Wed, 8 Sep 2010 18:56:34 +0000 (18:56 +0000)]
Rewrite TargetMaterializeConstant.

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

14 years agoRemove dead code.
Jakob Stoklund Olesen [Wed, 8 Sep 2010 18:50:24 +0000 (18:50 +0000)]
Remove dead code.

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

14 years agoMove private member functions to the end of the class declaration.
Owen Anderson [Wed, 8 Sep 2010 18:41:07 +0000 (18:41 +0000)]
Move private member functions to the end of the class declaration.

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

14 years agoA script that tests a certain release candidate in several modes. It does a
Bill Wendling [Wed, 8 Sep 2010 18:32:31 +0000 (18:32 +0000)]
A script that tests a certain release candidate in several modes. It does a
2-phase build of llvm and llvm-gcc, similar to what the buildbots do, and runs
the regression testsuite.

Things to do:

- Work out some bugs with llvm-gcc flags.
- Not all platforms support ObjC.
- Run the test-suite.

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

14 years agoAdd a directory for release management scripts.
Bill Wendling [Wed, 8 Sep 2010 18:30:06 +0000 (18:30 +0000)]
Add a directory for release management scripts.

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

14 years agoMake module ownership methods on LLVMContext private, and make Module a friend
Owen Anderson [Wed, 8 Sep 2010 18:22:11 +0000 (18:22 +0000)]
Make module ownership methods on LLVMContext private, and make Module a friend
so that it can access them.  These are not intended to be externally accessible APIs.

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

14 years agoMinor change. Fix comments and remove unused and redundant code
Bruno Cardoso Lopes [Wed, 8 Sep 2010 18:12:31 +0000 (18:12 +0000)]
Minor change. Fix comments and remove unused and redundant code

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

14 years agoELF_STB_Local is 0 so setting and checking it must be done specially
Roman Divacky [Wed, 8 Sep 2010 18:08:40 +0000 (18:08 +0000)]
ELF_STB_Local is 0 so setting and checking it must be done specially

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

14 years agoClarify the ownership model of LLVMContext and Module. Namely, contexts own
Owen Anderson [Wed, 8 Sep 2010 18:03:32 +0000 (18:03 +0000)]
Clarify the ownership model of LLVMContext and Module. Namely, contexts own
modules are instantiated in them.  If the context is deleted, all of its owned
modules are also deleted.

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

14 years agox86 vector shuffle lowering now relies only on target specific
Bruno Cardoso Lopes [Wed, 8 Sep 2010 17:43:25 +0000 (17:43 +0000)]
x86 vector shuffle lowering now relies only on target specific
nodes to emit shuffles and don't do isel mask matching anymore.
- Add the selection of the remaining shuffle opcode (movddup)
- Introduce two new functions to "recognize" where we may get
potential folds and add several comments to them explaining why
they are not yet in the desidered shape.
- Add more patterns to fallback the case where we select
a specific shuffle opcode as if it could fold a load, but it
can't, so remap to a valid instruction.
- Add a couple of FIXMEs to address in the following days once
there's a good solution to the current folding problem.

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

14 years agoBe more careful about when to do dynamic stack realignment. Since we have an
Jim Grosbach [Wed, 8 Sep 2010 17:22:12 +0000 (17:22 +0000)]
Be more careful about when to do dynamic stack realignment. Since we have an
option to disable base pointer usage, pay attention to it when deciding
if we can realign (if no base pointer and VLAs, we can't).

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

14 years agoAdd missing assert
Jim Grosbach [Wed, 8 Sep 2010 17:05:45 +0000 (17:05 +0000)]
Add missing assert

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

14 years agoExecute all Pass Printers even if -quiet is set.
Tobias Grosser [Wed, 8 Sep 2010 15:02:51 +0000 (15:02 +0000)]
Execute all Pass Printers even if -quiet is set.

Follow the same logic in the LoopPass, ModulePass and CallGraphSCCPass printers,
as it was already used in the BasicBlockPass and FunctionPass printers. This is
more consistent.

The other option would have been to completely disable dumping the analysis
information. However, as this information is the only information printed if the
-analysis flag is set, calling opt would not do anything at all.

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

14 years agoInclude original pass name in the PassPrinter's name.
Tobias Grosser [Wed, 8 Sep 2010 15:02:47 +0000 (15:02 +0000)]
Include original pass name in the PassPrinter's name.

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

14 years agoUnresolved weak symbols have value equal zero.
Roman Divacky [Wed, 8 Sep 2010 14:29:45 +0000 (14:29 +0000)]
Unresolved weak symbols have value equal zero.

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

14 years agoFix CellSPU vector shuffles, again.
Kalle Raiskila [Wed, 8 Sep 2010 11:53:38 +0000 (11:53 +0000)]
Fix CellSPU vector shuffles, again.
Some cases of lowering to rotate were miscompiled.

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

14 years agoadd support for the commuted form of the test instruction, rdar://8018260.
Chris Lattner [Wed, 8 Sep 2010 05:51:12 +0000 (05:51 +0000)]
add support for the commuted form of the test instruction, rdar://8018260.

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

14 years agoimplement proper support for sysret{,l,q}, rdar://8403907
Chris Lattner [Wed, 8 Sep 2010 05:45:34 +0000 (05:45 +0000)]
implement proper support for sysret{,l,q}, rdar://8403907

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

14 years agoimplement the iret suite of instructions properly,
Chris Lattner [Wed, 8 Sep 2010 05:38:31 +0000 (05:38 +0000)]
implement the iret suite of instructions properly,
fixing rdar://8403974

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

14 years agoadd support for instruction prefixes on the same line as the instruction,
Chris Lattner [Wed, 8 Sep 2010 05:17:37 +0000 (05:17 +0000)]
add support for instruction prefixes on the same line as the instruction,
implementing rdar://8033482 and PR7254.

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

14 years agochange the MC "ParseInstruction" interface to make it the
Chris Lattner [Wed, 8 Sep 2010 05:10:46 +0000 (05:10 +0000)]
change the MC "ParseInstruction" interface to make it the
implementation's job to check for and lex the EndOfStatement
marker.

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

14 years agogas accepts xchg <mem>, <reg> as a synonym for xchg <reg>, <mem>.
Chris Lattner [Wed, 8 Sep 2010 04:53:27 +0000 (04:53 +0000)]
gas accepts xchg <mem>, <reg> as a synonym for xchg <reg>, <mem>.
Add this to the mc assembler, fixing PR8061

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

14 years agoARM/Disassembler: Fix definitions incompatible(unsigned and uint32_t) to Cygwin-1...
NAKAMURA Takumi [Wed, 8 Sep 2010 04:48:17 +0000 (04:48 +0000)]
ARM/Disassembler: Fix definitions incompatible(unsigned and uint32_t) to Cygwin-1.5, following up to r113255.

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

14 years agofix the encoding of the "jump on *cx" family of instructions,
Chris Lattner [Wed, 8 Sep 2010 04:30:51 +0000 (04:30 +0000)]
fix the encoding of the "jump on *cx" family of instructions,
rdar://8061602

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

14 years agoremove trailing whitespace
Jim Grosbach [Wed, 8 Sep 2010 03:54:02 +0000 (03:54 +0000)]
remove trailing whitespace

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

14 years agoremove obsolete comment
Jim Grosbach [Wed, 8 Sep 2010 03:51:44 +0000 (03:51 +0000)]
remove obsolete comment

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

14 years agodisable for the moment while tracking down a few Thumb2-O0 failure that look
Jim Grosbach [Wed, 8 Sep 2010 02:00:34 +0000 (02:00 +0000)]
disable for the moment while tracking down a few Thumb2-O0 failure that look
related. (attempt deux, complete w/ test update this time)

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

14 years agowoops. need to update a test along with this.
Jim Grosbach [Wed, 8 Sep 2010 01:49:09 +0000 (01:49 +0000)]
woops. need to update a test along with this.

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

14 years agodisable temporarily while sorting out a few test failures in Thumb2-O0 tests.
Jim Grosbach [Wed, 8 Sep 2010 01:47:49 +0000 (01:47 +0000)]
disable temporarily while sorting out a few test failures in Thumb2-O0 tests.

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

14 years agoAdd a new experimental generalized dependence query interface to
Dan Gohman [Wed, 8 Sep 2010 01:32:20 +0000 (01:32 +0000)]
Add a new experimental generalized dependence query interface to
AliasAnalysis, and some code for implementing the new query on top of
existing implementations by making standard alias and getModRefInfo
queries.

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

14 years agocorrect spill code to properly determine if dynamic stack realignment is
Jim Grosbach [Wed, 8 Sep 2010 00:26:59 +0000 (00:26 +0000)]
correct spill code to properly determine if dynamic stack realignment is
present in the function and thus whether aligned load/store instructions can
be used.

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

14 years agoVFP/NEON load/store multiple instructions are addrmode4, not 5.
Jim Grosbach [Wed, 8 Sep 2010 00:25:50 +0000 (00:25 +0000)]
VFP/NEON load/store multiple instructions are addrmode4, not 5.

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

14 years agoAdd a separate unrolling threshold when the current function is being optimized for...
Owen Anderson [Tue, 7 Sep 2010 23:15:30 +0000 (23:15 +0000)]
Add a separate unrolling threshold when the current function is being optimized for size.
The threshold value of 50 is arbitrary, and I chose it simply by analogy to the inlining thresholds, where
the baseline unrolling threshold is slightly smaller than the baseline inlining threshold.  This could
undoubtedly use some tuning.

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

14 years agoAdd documentation for llvm-diff.
John McCall [Tue, 7 Sep 2010 23:10:21 +0000 (23:10 +0000)]
Add documentation for llvm-diff.

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

14 years agoDon't add <imp-def> operands during register rewriting.
Jakob Stoklund Olesen [Tue, 7 Sep 2010 22:38:45 +0000 (22:38 +0000)]
Don't add <imp-def> operands during register rewriting.

LiveIntervals already adds <imp-def> operands for super-registers when a subreg
def defines the whole register. Thus, it is not necessary to do it again when
rewriting.

In fact, the super-register imp-defs caused miscompilations because the late
scheduler couldn't see that the super-register was read.

We still add super-reg <imp-use,kill> operands when rewriting virtuals to
physicals.

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

14 years agoTo shrink a t2LDM instruction to the 16-bit wide tLDM instruction, the base
Jim Grosbach [Tue, 7 Sep 2010 22:30:53 +0000 (22:30 +0000)]
To shrink a t2LDM instruction to the 16-bit wide tLDM instruction, the base
register must be one of the destination registers for the load. Otherwise,
the tLDM instruction will write-back to the base register, which isn't what's
desired (otherwise, we'd have a t2LDM_UPD instead).

rdar://8394087

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

14 years agoremove these tests for now.
Devang Patel [Tue, 7 Sep 2010 22:03:44 +0000 (22:03 +0000)]
remove these tests for now.

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

14 years agogrammar tweak
Jim Grosbach [Tue, 7 Sep 2010 21:30:25 +0000 (21:30 +0000)]
grammar tweak

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

14 years agoRemove untrue comments.
Bill Wendling [Tue, 7 Sep 2010 21:07:59 +0000 (21:07 +0000)]
Remove untrue comments.

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

14 years agoFactor out some x86 vector shuffle rewriting and add comments about the direction...
Bruno Cardoso Lopes [Tue, 7 Sep 2010 21:03:14 +0000 (21:03 +0000)]
Factor out some x86 vector shuffle rewriting and add comments about the direction the shuffle lowering is heading to

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

14 years agoThere is no need to force target if the test is going to run on other x86 platforms.
Devang Patel [Tue, 7 Sep 2010 20:59:09 +0000 (20:59 +0000)]
There is no need to force target if the test is going to run on other x86 platforms.

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