oota-llvm.git
17 years agoFix 80 col violation.
Christopher Lamb [Thu, 26 Jul 2007 07:03:08 +0000 (07:03 +0000)]
Fix 80 col violation.

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

17 years agoRemove subreg index from MachineInstr's and also keep vregs as unsigned when adding...
Christopher Lamb [Thu, 26 Jul 2007 07:00:46 +0000 (07:00 +0000)]
Remove subreg index from MachineInstr's and also keep vregs as unsigned when adding operands.

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

17 years agoTeach TableGen about the new vector types.
Christopher Lamb [Thu, 26 Jul 2007 06:41:18 +0000 (06:41 +0000)]
Teach TableGen about the new vector types.

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

17 years agoFix infinite recursion for when extract_vector_elt is legal. Unfortunately no public...
Christopher Lamb [Thu, 26 Jul 2007 03:33:13 +0000 (03:33 +0000)]
Fix infinite recursion for when extract_vector_elt is legal. Unfortunately no public targets use this code-path, so no test.

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

17 years agoFix comments for new types.
Christopher Lamb [Thu, 26 Jul 2007 01:48:57 +0000 (01:48 +0000)]
Fix comments for new types.

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

17 years agoAdd support for 3 element 32-bit vector ValueTypes.
Christopher Lamb [Thu, 26 Jul 2007 01:46:52 +0000 (01:46 +0000)]
Add support for 3 element 32-bit vector ValueTypes.

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

17 years agoRemove X86ISD::LOAD_PACK and X86ISD::LOAD_UA and associated code from the
Dan Gohman [Thu, 26 Jul 2007 00:31:09 +0000 (00:31 +0000)]
Remove X86ISD::LOAD_PACK and X86ISD::LOAD_UA and associated code from the
x86 target, replacing them with the new alignment attributes on memory
references.

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

17 years agoFix what is _hopefully_ the last corner case for loops.
Owen Anderson [Wed, 25 Jul 2007 23:54:42 +0000 (23:54 +0000)]
Fix what is _hopefully_ the last corner case for loops.

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

17 years agoMac OS X x86-64 lower 4G address is not available.
Evan Cheng [Wed, 25 Jul 2007 23:41:36 +0000 (23:41 +0000)]
Mac OS X x86-64 lower 4G address is not available.

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

17 years agoMac OS X should use 0x90 to fill in gaps to satisfy function alignment requirements.
Evan Cheng [Wed, 25 Jul 2007 23:36:05 +0000 (23:36 +0000)]
Mac OS X should use 0x90 to fill in gaps to satisfy function alignment requirements.

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

17 years agoEmitAlignment() also emits optional fill value.
Evan Cheng [Wed, 25 Jul 2007 23:35:07 +0000 (23:35 +0000)]
EmitAlignment() also emits optional fill value.

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

17 years agoFunctions with LinkOnce and weak linkage still need to be aligned. Doh.
Evan Cheng [Wed, 25 Jul 2007 22:28:16 +0000 (22:28 +0000)]
Functions with LinkOnce and weak linkage still need to be aligned. Doh.

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

17 years agoMy last commit was not correct for nested loops. Fix it, and add a testcase for it.
Owen Anderson [Wed, 25 Jul 2007 22:19:40 +0000 (22:19 +0000)]
My last commit was not correct for nested loops.  Fix it, and add a testcase for it.

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

17 years agoFix an infinite loop on 300.twolf.
Owen Anderson [Wed, 25 Jul 2007 22:03:06 +0000 (22:03 +0000)]
Fix an infinite loop on 300.twolf.

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

17 years agoForgot to include this file in my last commit.
Owen Anderson [Wed, 25 Jul 2007 21:30:15 +0000 (21:30 +0000)]
Forgot to include this file in my last commit.

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

17 years agoFix a bug in non-local memdep that was causing an infinite loop on 175.vpr.
Owen Anderson [Wed, 25 Jul 2007 21:26:36 +0000 (21:26 +0000)]
Fix a bug in non-local memdep that was causing an infinite loop on 175.vpr.

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

17 years agoFix a bug that was causing GVN to crash on 252.eon.
Owen Anderson [Wed, 25 Jul 2007 21:13:41 +0000 (21:13 +0000)]
Fix a bug that was causing GVN to crash on 252.eon.

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

17 years agoFix example code.
Devang Patel [Wed, 25 Jul 2007 21:05:39 +0000 (21:05 +0000)]
Fix example code.

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

17 years agoAdd basic support for performing whole-function RLE.
Owen Anderson [Wed, 25 Jul 2007 19:57:03 +0000 (19:57 +0000)]
Add basic support for performing whole-function RLE.
Note: This has not yet been thoroughly tested.  Use at your own risk.

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

17 years agoMoving regression test to reflect move in source and headers to Bitcode.
Chandler Carruth [Wed, 25 Jul 2007 19:47:31 +0000 (19:47 +0000)]
Moving regression test to reflect move in source and headers to Bitcode.

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

17 years agoDon't ignore the return value of AsmPrinter::doInitialization and
Dan Gohman [Wed, 25 Jul 2007 19:33:14 +0000 (19:33 +0000)]
Don't ignore the return value of AsmPrinter::doInitialization and
AsmPrinter::doFinalization.

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

17 years agoAdd BasicInliner interface.
Devang Patel [Wed, 25 Jul 2007 18:00:25 +0000 (18:00 +0000)]
Add BasicInliner interface.
This interface allows clients to inline bunch of functions with module
level call graph information.:wq

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

17 years agotest commit
Chris Lattner [Wed, 25 Jul 2007 06:15:23 +0000 (06:15 +0000)]
test commit

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

17 years agoFix debug info and globals filled with zeros.
Nick Lewycky [Wed, 25 Jul 2007 03:48:45 +0000 (03:48 +0000)]
Fix debug info and globals filled with zeros.

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

17 years agoMinor cleanup:
Anton Korobeynikov [Wed, 25 Jul 2007 00:06:28 +0000 (00:06 +0000)]
Minor cleanup:
 - Split EH and debug infiormation
 - Make DwarfWriter more verbose in some cases

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

17 years agoAdd const to CanBeFoldedBy, CheckAndMask, and CheckOrMask.
Dan Gohman [Tue, 24 Jul 2007 23:00:27 +0000 (23:00 +0000)]
Add const to CanBeFoldedBy, CheckAndMask, and CheckOrMask.

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

17 years agoA minor simplication in the generated code.
Dan Gohman [Tue, 24 Jul 2007 22:58:00 +0000 (22:58 +0000)]
A minor simplication in the generated code.

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

17 years agoUse movaps to load a v4f32 build_vector of all-constant values into a
Dan Gohman [Tue, 24 Jul 2007 22:55:08 +0000 (22:55 +0000)]
Use movaps to load a v4f32 build_vector of all-constant values into a
register instead of loading each element individually.

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

17 years agoAdd initial support for non-local memory dependence analysis.
Owen Anderson [Tue, 24 Jul 2007 21:52:37 +0000 (21:52 +0000)]
Add initial support for non-local memory dependence analysis.
NOTE: This has only been cursorily tested.  Expected improvements soon.

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

17 years agoMake the copy constructor of SmallPtrSet much faster.
Owen Anderson [Tue, 24 Jul 2007 21:31:23 +0000 (21:31 +0000)]
Make the copy constructor of SmallPtrSet much faster.

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

17 years agoHeal EH handling stuff by emitting correct offsets to callee-saved registers.
Anton Korobeynikov [Tue, 24 Jul 2007 21:07:39 +0000 (21:07 +0000)]
Heal EH handling stuff by emitting correct offsets to callee-saved registers.

Pretty hackish, but code itself is dirty mess, so we won't make anything worse. :)

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

17 years agoAdd a GVN pass, using the value numbering code I developed for GVNPRE and the
Owen Anderson [Tue, 24 Jul 2007 17:55:58 +0000 (17:55 +0000)]
Add a GVN pass, using the value numbering code I developed for GVNPRE and the
load elimination code from RedundantLoadElimination.

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

17 years agoMake output match actual condition tested. Thanks, Duncan.
Reid Spencer [Tue, 24 Jul 2007 14:35:44 +0000 (14:35 +0000)]
Make output match actual condition tested. Thanks, Duncan.

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

17 years agoUnreachable block is not a root node in post dominator tree.
Devang Patel [Tue, 24 Jul 2007 01:02:25 +0000 (01:02 +0000)]
Unreachable block is not a root node in post dominator tree.

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

17 years agoRename a lot of things to change FastDLE to RedundantLoadElimination.
Owen Anderson [Tue, 24 Jul 2007 00:17:04 +0000 (00:17 +0000)]
Rename a lot of things to change FastDLE to RedundantLoadElimination.

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

17 years agoRename FastDLE as RedundantLoadElimination.
Owen Anderson [Tue, 24 Jul 2007 00:08:38 +0000 (00:08 +0000)]
Rename FastDLE as RedundantLoadElimination.

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

17 years ago1. Make sure we print the Function Value for parameter attribute errors
Reid Spencer [Mon, 23 Jul 2007 23:46:43 +0000 (23:46 +0000)]
1. Make sure we print the Function Value for parameter attribute errors
2. Fold an if statement into the Assert1 macro call.

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

17 years agoAdd better verification of attributes on function types. It is not permitted
Reid Spencer [Mon, 23 Jul 2007 23:09:55 +0000 (23:09 +0000)]
Add better verification of attributes on function types. It is not permitted
to use sret or inreg on the function. It is equally illegal to use noreturn
or nounwind on a parameter; they only go with the function. This patch
enforces these rules.

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

17 years agoFix for PR1567, which involves a weird bug on non-32bit architectures and silly C...
Chandler Carruth [Mon, 23 Jul 2007 22:42:15 +0000 (22:42 +0000)]
Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes.

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

17 years agoAdd testcases for FastDLE.
Owen Anderson [Mon, 23 Jul 2007 22:18:05 +0000 (22:18 +0000)]
Add testcases for FastDLE.

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

17 years agoDon't delete volatile loads. Doing so is not safe.
Owen Anderson [Mon, 23 Jul 2007 22:05:54 +0000 (22:05 +0000)]
Don't delete volatile loads.  Doing so is not safe.

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

17 years agoForgot to commit this file.
Owen Anderson [Mon, 23 Jul 2007 22:00:03 +0000 (22:00 +0000)]
Forgot to commit this file.

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

17 years agoFix a comment.
Owen Anderson [Mon, 23 Jul 2007 21:51:37 +0000 (21:51 +0000)]
Fix a comment.

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

17 years agoAdd FastDLE, the load-elimination counterpart of FastDSE.
Owen Anderson [Mon, 23 Jul 2007 21:48:08 +0000 (21:48 +0000)]
Add FastDLE, the load-elimination counterpart of FastDSE.

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

17 years agoMove these tests to use FastDSE instead of old DSE.
Owen Anderson [Mon, 23 Jul 2007 20:49:13 +0000 (20:49 +0000)]
Move these tests to use FastDSE instead of old DSE.

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

17 years agoFix some uses of dyn_cast to be uses of cast.
Dan Gohman [Mon, 23 Jul 2007 20:24:29 +0000 (20:24 +0000)]
Fix some uses of dyn_cast to be uses of cast.

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

17 years agoDelete the svn:executable property on these files, which aren't executable.
Dan Gohman [Mon, 23 Jul 2007 19:26:08 +0000 (19:26 +0000)]
Delete the svn:executable property on these files, which aren't executable.

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

17 years agoFix file header.
Owen Anderson [Mon, 23 Jul 2007 18:30:37 +0000 (18:30 +0000)]
Fix file header.

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

17 years agocompletely remove a transformation that is unsafe in the face of
Chris Lattner [Mon, 23 Jul 2007 17:10:17 +0000 (17:10 +0000)]
completely remove a transformation that is unsafe in the face of
undefs.

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

17 years agoThe Ada f-e produces various auxiliary output files
Duncan Sands [Mon, 23 Jul 2007 15:23:35 +0000 (15:23 +0000)]
The Ada f-e produces various auxiliary output files
that cannot be suppressed and cannot be redirected:
they are dumped in the current working directory.
When running the testsuite this means that these
files do not end up in the Output directory.  The
best solution I could find is to change directory
into Output before running tests.

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

17 years agoFor multipart tests, place the parts with no
Duncan Sands [Mon, 23 Jul 2007 13:41:53 +0000 (13:41 +0000)]
For multipart tests, place the parts with no
RUN line in Support.  Give up on sending output
to /dev/null - this cannot always be arranged.

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

17 years agoRestore ability to build archives (oops)
Reid Spencer [Mon, 23 Jul 2007 08:20:46 +0000 (08:20 +0000)]
Restore ability to build archives (oops)
Fix -include line so it doesn't reference /dev/null

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

17 years agoRemove bizarre use of /dev/null in a makefile include line that
Reid Spencer [Mon, 23 Jul 2007 08:09:15 +0000 (08:09 +0000)]
Remove bizarre use of /dev/null in a makefile include line that
produces warning from make about bad timestamp on /dev/null

Patch by Holger Schurig.

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

17 years agoFix some validation errors.
Bill Wendling [Mon, 23 Jul 2007 04:44:02 +0000 (04:44 +0000)]
Fix some validation errors.

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

17 years agoConverted to "svn" and reformatted.
Bill Wendling [Mon, 23 Jul 2007 04:41:42 +0000 (04:41 +0000)]
Converted to "svn" and reformatted.

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

17 years agoRemove dead option.
Reid Spencer [Mon, 23 Jul 2007 04:23:32 +0000 (04:23 +0000)]
Remove dead option.

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

17 years agoSmall change.
Bill Wendling [Mon, 23 Jul 2007 03:56:42 +0000 (03:56 +0000)]
Small change.

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

17 years agoPoint to the correct SVN repository.
Bill Wendling [Mon, 23 Jul 2007 03:56:11 +0000 (03:56 +0000)]
Point to the correct SVN repository.

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

17 years agoAdd missing SSE builtins:
Bill Wendling [Mon, 23 Jul 2007 03:07:27 +0000 (03:07 +0000)]
Add missing SSE builtins:

    __builtin_ia32_cvtss2si64
    __builtin_ia32_cvttss2si64
    __builtin_ia32_cvtsi642ss
    __builtin_ia32_cvtsd2si64
    __builtin_ia32_cvttsd2si64
    __builtin_ia32_cvtsi642sd

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

17 years agoReport an error if one occurs in releaseModule.
Reid Spencer [Sun, 22 Jul 2007 21:39:37 +0000 (21:39 +0000)]
Report an error if one occurs in releaseModule.

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

17 years agoDisable the string map copy ctor and assignment operators,
Chris Lattner [Sun, 22 Jul 2007 20:08:01 +0000 (20:08 +0000)]
Disable the string map copy ctor and assignment operators,
they don't do the right thing.

Implement StringMap::erase.

Fix a nasty bug in the default ctor.

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

17 years agoRemove -O1 in favour of making llvm-gcc-4.2 a bit
Duncan Sands [Sun, 22 Jul 2007 10:25:44 +0000 (10:25 +0000)]
Remove -O1 in favour of making llvm-gcc-4.2 a bit
smarter.

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

17 years agoThis xform isn't safe, removing it.
Chris Lattner [Sat, 21 Jul 2007 21:27:27 +0000 (21:27 +0000)]
This xform isn't safe, removing it.

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

17 years agoUpdate for changes in library.sh
Reid Spencer [Sat, 21 Jul 2007 09:33:41 +0000 (09:33 +0000)]
Update for changes in library.sh

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

17 years agoApply temporary work around to fix llvm mis-compilation
Devang Patel [Sat, 21 Jul 2007 00:34:29 +0000 (00:34 +0000)]
Apply temporary work around to fix llvm mis-compilation
reported in PR 1556.

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

17 years agoNo more noResults.
Evan Cheng [Sat, 21 Jul 2007 00:34:19 +0000 (00:34 +0000)]
No more noResults.

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

17 years agoDon't assume that only Uses can be kills. Defs are marked as kills initially
Dan Gohman [Fri, 20 Jul 2007 23:17:34 +0000 (23:17 +0000)]
Don't assume that only Uses can be kills. Defs are marked as kills initially
when there are no uses. This fixes a dangling-pointer bug, where pointers to
deleted instructions were not removed from kills lists. More info here:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2007-July/009749.html

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

17 years agoSimplify the logic for setVolatile.
Dan Gohman [Fri, 20 Jul 2007 23:14:50 +0000 (23:14 +0000)]
Simplify the logic for setVolatile.

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

17 years agoNeed -O1 or better to have these builtins lowered to
Duncan Sands [Fri, 20 Jul 2007 22:39:06 +0000 (22:39 +0000)]
Need -O1 or better to have these builtins lowered to
llvm intrinsics in llvm-gcc-4.2.  This is because
get_pointer_alignment bails out: it relies on TER
to compute accurate alignment information.

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

17 years agozext(undef) = 0 and sext(undef) = 0, not undef.
Chris Lattner [Fri, 20 Jul 2007 22:09:02 +0000 (22:09 +0000)]
zext(undef) = 0 and sext(undef) = 0, not undef.
This hopefully fixes a miscompilation of TargetData.cpp when self hosting.

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

17 years agothis xform is already done by the constant folder.
Chris Lattner [Fri, 20 Jul 2007 22:06:41 +0000 (22:06 +0000)]
this xform is already done by the constant folder.

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

17 years agoAdded -print-emitted-asm to print out JIT generated asm to cerr.
Evan Cheng [Fri, 20 Jul 2007 21:56:13 +0000 (21:56 +0000)]
Added -print-emitted-asm to print out JIT generated asm to cerr.

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

17 years agoUpdate to include clean and install commands.
Reid Spencer [Fri, 20 Jul 2007 20:54:41 +0000 (20:54 +0000)]
Update to include clean and install commands.

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

17 years agoNo longer referencing "shared memory" as this can confuse people. The memory is
Chandler Carruth [Fri, 20 Jul 2007 20:14:52 +0000 (20:14 +0000)]
No longer referencing "shared memory" as this can confuse people. The memory is
clearly shared between processors if these instructions are being used, no
further specification of what type of memory is necessary.

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

17 years agoSilly HTML
Reid Spencer [Fri, 20 Jul 2007 20:03:33 +0000 (20:03 +0000)]
Silly HTML

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

17 years agoFix validation errors.
Reid Spencer [Fri, 20 Jul 2007 19:59:11 +0000 (19:59 +0000)]
Fix validation errors.

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

17 years agoThis introduces the atomic operation intrinsics into the documentation. This is
Chandler Carruth [Fri, 20 Jul 2007 19:34:37 +0000 (19:34 +0000)]
This introduces the atomic operation intrinsics into the documentation. This is
a preview for the intrinsics that are going to be implemented over the next few
weeks.

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

17 years agoMake the heuristic for shrinking DenseMap smarter.
Owen Anderson [Fri, 20 Jul 2007 18:56:46 +0000 (18:56 +0000)]
Make the heuristic for shrinking DenseMap smarter.

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

17 years agoUse SmallVector instead of std::vector.
Devang Patel [Fri, 20 Jul 2007 18:04:54 +0000 (18:04 +0000)]
Use SmallVector instead of std::vector.

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

17 years agoFixing some differences between CVS and SVN diff'ing. Reid fixed these already,
Chandler Carruth [Fri, 20 Jul 2007 17:21:54 +0000 (17:21 +0000)]
Fixing some differences between CVS and SVN diff'ing. Reid fixed these already,
but I think it got lost in the conversion mess.

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

17 years agoOptimize alignment of loads and stores.
Dan Gohman [Fri, 20 Jul 2007 16:34:21 +0000 (16:34 +0000)]
Optimize alignment of loads and stores.

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

17 years agoUpdate these regression tests to accomodate X86InstrSSE.td now using movups/movaps
Dan Gohman [Fri, 20 Jul 2007 16:31:26 +0000 (16:31 +0000)]
Update these regression tests to accomodate X86InstrSSE.td now using movups/movaps
for everything.

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

17 years agoHave DenseMap auto-shrink itself on clear(). This improves the time to optimize
Owen Anderson [Fri, 20 Jul 2007 16:15:24 +0000 (16:15 +0000)]
Have DenseMap auto-shrink itself on clear().  This improves the time to optimize
403.gcc from 15.2s to 14.3s.

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

17 years agoPlace SCCPSolver also in the anonymous namespace. This
Duncan Sands [Fri, 20 Jul 2007 08:56:21 +0000 (08:56 +0000)]
Place SCCPSolver also in the anonymous namespace.  This
pacifies g++-4.2.

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

17 years agoFix a bug where we were marking GEP expressions with the wrong opcode.
Owen Anderson [Fri, 20 Jul 2007 08:19:20 +0000 (08:19 +0000)]
Fix a bug where we were marking GEP expressions with the wrong opcode.

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

17 years agoWhen removing instructions from the analysis, be sure to check the confirmed
Owen Anderson [Fri, 20 Jul 2007 06:16:07 +0000 (06:16 +0000)]
When removing instructions from the analysis, be sure to check the confirmed
flag when determining what to do with dependencies.

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

17 years agoNew test.
Evan Cheng [Fri, 20 Jul 2007 00:27:56 +0000 (00:27 +0000)]
New test.

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

17 years agoBecause we promote SSE logical ops and loads to v2i64, we often end up generate
Evan Cheng [Fri, 20 Jul 2007 00:27:43 +0000 (00:27 +0000)]
Because we promote SSE logical ops and loads to v2i64, we often end up generate
code that cross integer / floating point domains (e.g. generate pxor / pand for
logical ops on floating point value, movdqa to load / store floating point SSE
values). Given that, it's better to use movaps instead of movdqa and movups
instead of movdqu. They have the same latency but the "aps" variants are one
byte shorter.
If the domain crossing problem is a real performance issue, then we will have to
fix it with dynamic programming based isel.

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

17 years agoNo need for noResults anymore.
Evan Cheng [Fri, 20 Jul 2007 00:21:23 +0000 (00:21 +0000)]
No need for noResults anymore.

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

17 years agoOops. These stores actually produce results.
Evan Cheng [Fri, 20 Jul 2007 00:20:46 +0000 (00:20 +0000)]
Oops. These stores actually produce results.

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

17 years agoNew test.
Evan Cheng [Thu, 19 Jul 2007 23:53:50 +0000 (23:53 +0000)]
New test.

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

17 years agoTry fixing it again.
Evan Cheng [Thu, 19 Jul 2007 23:53:29 +0000 (23:53 +0000)]
Try fixing it again.

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

17 years agoFix custom lowering of SSE FXOR.
Evan Cheng [Thu, 19 Jul 2007 23:36:01 +0000 (23:36 +0000)]
Fix custom lowering of SSE FXOR.

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

17 years agoFix patterns so we isel the xorps, etc. for floating pt logical SSE ops. DAG combiner...
Evan Cheng [Thu, 19 Jul 2007 23:34:10 +0000 (23:34 +0000)]
Fix patterns so we isel the xorps, etc. for floating pt logical SSE ops. DAG combiner may fold away the (bit_convert (load)).

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

17 years agoFor PR1553:
Reid Spencer [Thu, 19 Jul 2007 23:13:04 +0000 (23:13 +0000)]
For PR1553:
Change the keywords for the zext and sext parameter attributes to be
zeroext and signext so they don't conflict with the keywords for the
instructions of the same name. This gets around the ambiguity.

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

17 years agoHush a noisy warning from GCC 4.2 about overflow during conversion by using
Reid Spencer [Thu, 19 Jul 2007 21:05:30 +0000 (21:05 +0000)]
Hush a noisy warning from GCC 4.2 about overflow during conversion by using
the type "unsigned" instead of uintptr_t for a 1-bit structure field.

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

17 years agoMake val_replace fail early, which reduces the time to optimize 403.gcc to 14.8s.
Owen Anderson [Thu, 19 Jul 2007 19:57:13 +0000 (19:57 +0000)]
Make val_replace fail early, which reduces the time to optimize 403.gcc to 14.8s.

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

17 years agoDon't need the "&&" to glue lines together.
Bill Wendling [Thu, 19 Jul 2007 18:06:26 +0000 (18:06 +0000)]
Don't need the "&&" to glue lines together.

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

17 years agoVerify loop info.
Devang Patel [Thu, 19 Jul 2007 18:02:32 +0000 (18:02 +0000)]
Verify loop info.

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

17 years agoProperly initialize value :)
Anton Korobeynikov [Thu, 19 Jul 2007 15:32:47 +0000 (15:32 +0000)]
Properly initialize value :)

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