oota-llvm.git
16 years agoRevert 51067 check-in for now.
Devang Patel [Thu, 15 May 2008 18:46:28 +0000 (18:46 +0000)]
Revert 51067 check-in for now.

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

16 years agoRemove useless check.
Devang Patel [Thu, 15 May 2008 18:04:29 +0000 (18:04 +0000)]
Remove useless check.
Patch by Matthijs Kooijman.

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

16 years agoDisable JIT symbol table for now.
Evan Cheng [Thu, 15 May 2008 17:31:35 +0000 (17:31 +0000)]
Disable JIT symbol table for now.

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

16 years agoUse of UINT_MAX requires climits, at least when
Duncan Sands [Thu, 15 May 2008 11:22:50 +0000 (11:22 +0000)]
Use of UINT_MAX requires climits, at least when
compiling with gcc 4.3.

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

16 years agoFix a bunch of 80col violations that arose from the Create API change. Tweak makefile...
Gabor Greif [Thu, 15 May 2008 10:04:30 +0000 (10:04 +0000)]
Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better.

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

16 years agoignore generated files and product directories
Gabor Greif [Thu, 15 May 2008 09:38:32 +0000 (09:38 +0000)]
ignore generated files and product directories

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

16 years agoMake use of vector load and store operations to implement memcpy, memmove, and memset...
Evan Cheng [Thu, 15 May 2008 08:39:06 +0000 (08:39 +0000)]
Make use of vector load and store operations to implement memcpy, memmove, and memset. Currently only X86 target is taking advantage of these.

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

16 years agoRemove tail duplication pass.
Evan Cheng [Thu, 15 May 2008 07:43:15 +0000 (07:43 +0000)]
Remove tail duplication pass.

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

16 years agoMove the operator new and operator delete out of line. This fixes an issue with
Nate Begeman [Thu, 15 May 2008 01:23:11 +0000 (01:23 +0000)]
Move the operator new and operator delete out of line.  This fixes an issue with
operator new() referring to the static initTags function, which has to be in the
same linkage unit as any file including User.h.

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

16 years agoDon't assume underlying APInt type is limited
Dale Johannesen [Wed, 14 May 2008 22:53:25 +0000 (22:53 +0000)]
Don't assume underlying APInt type is limited
to 64 bits.

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

16 years agoSituations can arise when you have a function called that returns a 'void', but
Bill Wendling [Wed, 14 May 2008 22:45:20 +0000 (22:45 +0000)]
Situations can arise when you have a function called that returns a 'void', but
is bitcast to return a floating point value. The result of the instruction may
not be used by the program afterwards, and LLVM will happily remove all
instructions except the call. But, on some platforms, if a value is returned as
a floating point, it may need to be removed from the stack (like x87). Thus, we
can't get rid of the bitcast even if there isn't a use of the value.

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

16 years agoRemove undefined behavior in hex string->APFloat
Dale Johannesen [Wed, 14 May 2008 22:05:31 +0000 (22:05 +0000)]
Remove undefined behavior in hex string->APFloat
conversion.  Try 0x1.0000a4p+0f.  Neil, please review.

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

16 years agoUse a better idiom to silence compiler warnings.
Evan Cheng [Wed, 14 May 2008 21:08:07 +0000 (21:08 +0000)]
Use a better idiom to silence compiler warnings.

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

16 years agorename SimplifyCFG.cpp -> SimplifyCFGPass.cpp
Chris Lattner [Wed, 14 May 2008 20:38:44 +0000 (20:38 +0000)]
rename SimplifyCFG.cpp -> SimplifyCFGPass.cpp

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

16 years agoSilence warnings.
Evan Cheng [Wed, 14 May 2008 20:33:21 +0000 (20:33 +0000)]
Silence warnings.

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

16 years agoAdd support to IR builder for new vicmp, vfcmp routines
Nate Begeman [Wed, 14 May 2008 20:29:46 +0000 (20:29 +0000)]
Add support to IR builder for new vicmp, vfcmp routines

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

16 years agoReally silence compiler warnings.
Evan Cheng [Wed, 14 May 2008 20:29:30 +0000 (20:29 +0000)]
Really silence compiler warnings.

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

16 years agoDon't generate unused variables in a no-assert build
Nate Begeman [Wed, 14 May 2008 20:28:31 +0000 (20:28 +0000)]
Don't generate unused variables in a no-assert build
Add some checks to the new vicmp,vfcmp instructions

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

16 years agoReally silence compiler warnings.
Evan Cheng [Wed, 14 May 2008 20:26:35 +0000 (20:26 +0000)]
Really silence compiler warnings.

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

16 years agoCommonLinkage (missed a file)
Dale Johannesen [Wed, 14 May 2008 20:14:09 +0000 (20:14 +0000)]
CommonLinkage (missed a file)

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

16 years agoGenerated files for CommonLinkage.
Dale Johannesen [Wed, 14 May 2008 20:13:36 +0000 (20:13 +0000)]
Generated files for CommonLinkage.

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

16 years agoAdd CommonLinkage; currently tentative definitions
Dale Johannesen [Wed, 14 May 2008 20:12:51 +0000 (20:12 +0000)]
Add CommonLinkage; currently tentative definitions
are represented as "weak", but there are subtle differences
in some cases on Darwin, so we need both.  The intent
is that "common" will behave identically to "weak" unless
somebody changes their target to do something else.
No functional change as yet.

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

16 years agoSilence some compiler warnings.
Evan Cheng [Wed, 14 May 2008 20:07:51 +0000 (20:07 +0000)]
Silence some compiler warnings.

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

16 years agoSimplify internalize pass. Add test case.
Devang Patel [Wed, 14 May 2008 20:01:01 +0000 (20:01 +0000)]
Simplify internalize pass. Add test case.
Patch by Matthijs Kooijman!

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

16 years agoWhen bit-twiddling CondCode values for integer comparisons produces
Dan Gohman [Wed, 14 May 2008 18:17:09 +0000 (18:17 +0000)]
When bit-twiddling CondCode values for integer comparisons produces
SETOEQ, is it does with (SETEQ & SETULE), map it to SETEQ.

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

16 years agoRecover nestedloop regression reported by nightly tester.
Devang Patel [Wed, 14 May 2008 18:04:30 +0000 (18:04 +0000)]
Recover nestedloop regression reported by nightly tester.

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

16 years agoCheck if llvm-gcc is available before running tests. Patch by Matthijs Kooijman!
Tanya Lattner [Wed, 14 May 2008 16:32:44 +0000 (16:32 +0000)]
Check if llvm-gcc is available before running tests. Patch by Matthijs Kooijman!

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

16 years agoDetabification. Fixed indentation and spacing.
Sanjiv Gupta [Wed, 14 May 2008 11:31:39 +0000 (11:31 +0000)]
Detabification. Fixed indentation and spacing.
Changed cout to DOUT, and TODOs to FIXMEs.
Other changes as per coding conventions.

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

16 years agoDo not generate by TableGen the hard-coded standard, target-independent part of
Roman Levenstein [Wed, 14 May 2008 10:17:11 +0000 (10:17 +0000)]
Do not generate by TableGen the hard-coded standard, target-independent part of
DAG instruction selectors. Introudce a dedicated header file for this part:
include/llvm/CodeGen/DAGISelHeader.h

TableGen now only generates the include preprocessor directive to include this
new header.

This is a preparation for supporting multiple implementations of instruction
selectors in the future.

Reviewed and approved by Evan and Dan.

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

16 years agoUpgrading clang VC++ solution to VC++ express 2008.
Argyrios Kyrtzidis [Wed, 14 May 2008 09:58:45 +0000 (09:58 +0000)]
Upgrading clang VC++ solution to VC++ express 2008.

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

16 years agoMake this test pass on x86-32 linux.
Duncan Sands [Wed, 14 May 2008 09:46:01 +0000 (09:46 +0000)]
Make this test pass on x86-32 linux.

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

16 years agoAdding missing files to Transforms and VMCore VC++ projects.
Argyrios Kyrtzidis [Wed, 14 May 2008 09:39:32 +0000 (09:39 +0000)]
Adding missing files to Transforms and VMCore VC++ projects.

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

16 years agoAdd documentation for tail call optimization to CodeGenerator.html. Add a link
Arnold Schwaighofer [Wed, 14 May 2008 09:17:12 +0000 (09:17 +0000)]
Add documentation for tail call optimization to CodeGenerator.html. Add a link
referring to it to LangRef.html.

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

16 years agoAdded configure switches for PIC16 in configure.ac.
Sanjiv Gupta [Wed, 14 May 2008 08:03:23 +0000 (08:03 +0000)]
Added configure switches for PIC16 in configure.ac.
Regenerated configure.

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

16 years agoFix typo in ParameterAttribute fields usage. Add an include
Nicolas Geoffray [Wed, 14 May 2008 07:52:03 +0000 (07:52 +0000)]
Fix typo in ParameterAttribute fields usage. Add an include
to make the Cpp backend output compilable.

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

16 years agoFixed the file description header at the top to remove the developer name.
Sanjiv Gupta [Wed, 14 May 2008 06:50:01 +0000 (06:50 +0000)]
Fixed the file description header at the top to remove the developer name.

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

16 years agoCommit the header I accidentally left out of 51083.
Dan Gohman [Wed, 14 May 2008 04:39:40 +0000 (04:39 +0000)]
Commit the header I accidentally left out of 51083.

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

16 years agoDoh. Alignment is in bytes, not in bits.
Evan Cheng [Wed, 14 May 2008 02:49:43 +0000 (02:49 +0000)]
Doh. Alignment is in bytes, not in bits.

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

16 years agoChange target-specific classes to use more precise static types.
Dan Gohman [Wed, 14 May 2008 01:58:56 +0000 (01:58 +0000)]
Change target-specific classes to use more precise static types.
This eliminates the need for several awkward casts, including
the last dynamic_cast under lib/Target.

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

16 years agoMove RemoveFromVector out of the global namespace.
Dan Gohman [Wed, 14 May 2008 01:02:49 +0000 (01:02 +0000)]
Move RemoveFromVector out of the global namespace.

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

16 years agoWhitespace cleanups.
Dan Gohman [Wed, 14 May 2008 00:43:10 +0000 (00:43 +0000)]
Whitespace cleanups.

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

16 years agoMake PreVerifyID, IntSigsEnd, and KillSigsEnd const.
Dan Gohman [Wed, 14 May 2008 00:42:30 +0000 (00:42 +0000)]
Make PreVerifyID, IntSigsEnd, and KillSigsEnd const.

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

16 years agoMake getNumContainedManagers and getNumContainedPasses const.
Dan Gohman [Wed, 14 May 2008 00:40:34 +0000 (00:40 +0000)]
Make getNumContainedManagers and getNumContainedPasses const.

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

16 years agoMake PassInfo noncopyable.
Dan Gohman [Wed, 14 May 2008 00:39:39 +0000 (00:39 +0000)]
Make PassInfo noncopyable.

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

16 years agoDo not run instruction combiner in middle of loop optimization passes.
Devang Patel [Wed, 14 May 2008 00:26:11 +0000 (00:26 +0000)]
Do not run instruction combiner in middle of loop optimization passes.

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

16 years agoSplit the loop unroll mechanism logic out into a utility function.
Dan Gohman [Wed, 14 May 2008 00:24:14 +0000 (00:24 +0000)]
Split the loop unroll mechanism logic out into a utility function.
Patch by Matthijs Kooijman!

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

16 years agoFix Analysis/BasicAA/pure-const-dce.ll. This turned out to be a correctness
Owen Anderson [Tue, 13 May 2008 23:18:30 +0000 (23:18 +0000)]
Fix Analysis/BasicAA/pure-const-dce.ll.  This turned out to be a correctness
bug as well as a missed optimization.  We weren't properly checking for local
dependencies before moving on to non-local ones when doing non-local read-only
call CSE.

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

16 years agoMerge of r51073-51074 from use-diet branch.
Gabor Greif [Tue, 13 May 2008 22:51:52 +0000 (22:51 +0000)]
Merge of r51073-51074 from use-diet branch.

Do not rely on std::swap<Use>, provide a (faster) member function instead.
This change is primarily necessitated by MSVC++'s incompatibility with
declaring std::swap<Use> to be a friend of Use.

Also contains some minor tweaks to Use inline functions,
to undo pointless changes that sneaked in with the last merge.

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

16 years agoMake this function public.
Eric Christopher [Tue, 13 May 2008 22:51:04 +0000 (22:51 +0000)]
Make this function public.

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

16 years agoDominance Frontier is cfg only pass.
Devang Patel [Tue, 13 May 2008 22:43:21 +0000 (22:43 +0000)]
Dominance Frontier is cfg only pass.

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

16 years agoFix memdep's handling of invokes when finding the dependency of another call
Owen Anderson [Tue, 13 May 2008 21:25:37 +0000 (21:25 +0000)]
Fix memdep's handling of invokes when finding the dependency of another call
instruction.  This fixes some Ada miscompiles reported in PR2324.

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

16 years agoUpdate the Win32 project files, patch by Razvan Aciu!
Chris Lattner [Tue, 13 May 2008 20:56:51 +0000 (20:56 +0000)]
Update the Win32 project files, patch by Razvan Aciu!

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

16 years agoFix for PR 2323, infinite loop in tail dup.
Dale Johannesen [Tue, 13 May 2008 20:06:43 +0000 (20:06 +0000)]
Fix for PR 2323, infinite loop in tail dup.

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

16 years agoadd a note
Chris Lattner [Tue, 13 May 2008 19:56:20 +0000 (19:56 +0000)]
add a note

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

16 years ago- Fix the pasto in the fix for a previous pasto.
Evan Cheng [Tue, 13 May 2008 18:59:59 +0000 (18:59 +0000)]
- Fix the pasto in the fix for a previous pasto.
- Incorporate Chris' comment suggestion.

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

16 years agoadd a note
Chris Lattner [Tue, 13 May 2008 18:48:54 +0000 (18:48 +0000)]
add a note

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

16 years agos/indicies/indices/ and clarify the extractvalue and insertvalue are
Dan Gohman [Tue, 13 May 2008 18:16:06 +0000 (18:16 +0000)]
s/indicies/indices/ and clarify the extractvalue and insertvalue are
working with struct field or array element values. Thanks Duncan!

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

16 years agoFix one more encoding bug.
Nate Begeman [Tue, 13 May 2008 17:52:09 +0000 (17:52 +0000)]
Fix one more encoding bug.

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

16 years agoAdded configure switches for PIC16 backend.
Sanjiv Gupta [Tue, 13 May 2008 17:37:32 +0000 (17:37 +0000)]
Added configure switches for PIC16 backend.

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

16 years ago- Don't treat anyext 16-bit load as a 32-bit load if it's volatile.
Evan Cheng [Tue, 13 May 2008 16:45:56 +0000 (16:45 +0000)]
- Don't treat anyext 16-bit load as a 32-bit load if it's volatile.
- Correct a pasto.

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

16 years agoAdd thin layer over StringMap to form StringSet. By Mikhail Glushenkov.
Anton Korobeynikov [Tue, 13 May 2008 15:03:16 +0000 (15:03 +0000)]
Add thin layer over StringMap to form StringSet. By Mikhail Glushenkov.

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

16 years agoMake the non-local CSE safety checks slightly more thorough.
Owen Anderson [Tue, 13 May 2008 13:41:23 +0000 (13:41 +0000)]
Make the non-local CSE safety checks slightly more thorough.

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

16 years agoAdding files for Microchip's PIC16 target.
Sanjiv Gupta [Tue, 13 May 2008 09:02:57 +0000 (09:02 +0000)]
Adding files for Microchip's PIC16 target.

A brief description about PIC16:
===============================
PIC16 is an 8-bit microcontroller with only one 8-bit register which is the
accumulator. All arithmetic/load/store operations are 8-bit only.
The architecture has two address spaces: program and data. The program memory
is divided into 2K pages and the data memory is divided into banks of 128 byte, with only 80 usable bytes, resulting in an non-contiguous data memory.

It supports direct data memory access (by specifying the address as part of the instruction) and indirect data and program memory access (in an unorthodox fashion which utilize a 16 bit pointer register).

Two classes of registers exist: (8-bit class which is only one
accumulator) (16-bit class, which contains one or more 16 bit
pointer(s))

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

16 years agoInstead of a vector load, shuffle and then extract an element. Load the element from...
Evan Cheng [Tue, 13 May 2008 08:35:03 +0000 (08:35 +0000)]
Instead of a vector load, shuffle and then extract an element. Load the element from address with an offset.
        pshufd $1, (%rdi), %xmm0
        movd %xmm0, %eax
=>
        movl 4(%rdi), %eax

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

16 years agoAdd a testcase for non-local CSE of read-only calls.
Owen Anderson [Tue, 13 May 2008 08:17:44 +0000 (08:17 +0000)]
Add a testcase for non-local CSE of read-only calls.

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

16 years agoAdd support for non-local CSE of read-only calls.
Owen Anderson [Tue, 13 May 2008 08:17:22 +0000 (08:17 +0000)]
Add support for non-local CSE of read-only calls.

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

16 years agoDerive GetResultInst from UnaryInstruction, this simplifies code and removes a FIXME.
Gabor Greif [Tue, 13 May 2008 07:09:08 +0000 (07:09 +0000)]
Derive GetResultInst from UnaryInstruction, this simplifies code and removes a FIXME.

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

16 years agoChange class' public PassInfo variables to by initialized with the
Dan Gohman [Tue, 13 May 2008 02:05:11 +0000 (02:05 +0000)]
Change class' public PassInfo variables to by initialized with the
address of the PassInfo directly instead of calling getPassInfo.
This eliminates a bunch of dynamic initializations of static data.

Also, fold RegisterPassBase into PassInfo, make a bunch of its
data members const, and rearrange some code to initialize data
members in constructors instead of using setter member functions.

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

16 years ago80 col / tabs fixes
Nate Begeman [Tue, 13 May 2008 01:48:26 +0000 (01:48 +0000)]
80 col / tabs fixes

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

16 years agoFix and encoding error in the psrad xmm, imm8 instruction.
Nate Begeman [Tue, 13 May 2008 01:47:52 +0000 (01:47 +0000)]
Fix and encoding error in the psrad xmm, imm8 instruction.

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

16 years agoOn x86, it's safe to treat i32 load anyext as a normal i32 load. Ditto for i8 anyext...
Evan Cheng [Tue, 13 May 2008 00:54:02 +0000 (00:54 +0000)]
On x86, it's safe to treat i32 load anyext as a normal i32 load. Ditto for i8 anyext load to i16.

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

16 years agoClean up the use of static and anonymous namespaces. This turned up
Dan Gohman [Tue, 13 May 2008 00:00:25 +0000 (00:00 +0000)]
Clean up the use of static and anonymous namespaces. This turned up
several things that were neither in an anonymous namespace nor static
but not intended to be global.

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

16 years agoInitial documentation for first-class aggregates changes.
Dan Gohman [Mon, 12 May 2008 23:51:09 +0000 (23:51 +0000)]
Initial documentation for first-class aggregates changes.

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

16 years agoFix a malformed %gt;
Dan Gohman [Mon, 12 May 2008 23:38:42 +0000 (23:38 +0000)]
Fix a malformed %gt;

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

16 years agoTeach Legalize how to scalarize VSETCC
Nate Begeman [Mon, 12 May 2008 23:09:43 +0000 (23:09 +0000)]
Teach Legalize how to scalarize VSETCC
Teach X86 a few more vsetcc patterns.  Custom lowering for unsupported ones is next.

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

16 years agoXform bitconvert(build_pair(load a, load b)) to a single load if the load locations...
Evan Cheng [Mon, 12 May 2008 23:04:07 +0000 (23:04 +0000)]
Xform bitconvert(build_pair(load a, load b)) to a single load if the load locations are at the right offset from each other.

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

16 years agoNew test for tail merging
Dale Johannesen [Mon, 12 May 2008 22:59:44 +0000 (22:59 +0000)]
New test for tail merging

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

16 years agoBe more aggressive about tail-merging small blocks
Dale Johannesen [Mon, 12 May 2008 22:53:12 +0000 (22:53 +0000)]
Be more aggressive about tail-merging small blocks
if those blocks consist entirely of common instructions;
merging will not add an extra branch in this case.

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

16 years agoConstify isSourceDefinedByImplicitDef function. Otherwise, just formatting
Bill Wendling [Mon, 12 May 2008 22:15:05 +0000 (22:15 +0000)]
Constify isSourceDefinedByImplicitDef function. Otherwise, just formatting
changes that don't change functionality.

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

16 years agoConstify the machine instruction passed into the
Bill Wendling [Mon, 12 May 2008 20:54:26 +0000 (20:54 +0000)]
Constify the machine instruction passed into the
"is{Trivially,Really}ReMaterializable" methods.

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

16 years agoInitial X86 codegen support for VSETCC.
Nate Begeman [Mon, 12 May 2008 20:34:32 +0000 (20:34 +0000)]
Initial X86 codegen support for VSETCC.

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

16 years agoFurther rework of tail merge algorithm. Not quite
Dale Johannesen [Mon, 12 May 2008 20:33:57 +0000 (20:33 +0000)]
Further rework of tail merge algorithm.  Not quite
semantically identical, but little difference in
either results or execution speed; but it's much
easier to read, at least IMO.

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

16 years agoSimplify some checks
Nate Begeman [Mon, 12 May 2008 20:33:52 +0000 (20:33 +0000)]
Simplify some checks

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

16 years agoFix a copy+paste bug; pseudo-instructions shouldn't have
Dan Gohman [Mon, 12 May 2008 20:22:45 +0000 (20:22 +0000)]
Fix a copy+paste bug; pseudo-instructions shouldn't have
encoding information.

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

16 years agoPointer comparisons should use icmp, not vicmp
Nate Begeman [Mon, 12 May 2008 20:16:55 +0000 (20:16 +0000)]
Pointer comparisons should use icmp, not vicmp

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

16 years agoGo back to passing the analyses around as parameters.
Owen Anderson [Mon, 12 May 2008 20:15:55 +0000 (20:15 +0000)]
Go back to passing the analyses around as parameters.

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

16 years agoPointer comparisons should be handled by icmp, not vicmp :)
Nate Begeman [Mon, 12 May 2008 20:11:05 +0000 (20:11 +0000)]
Pointer comparisons should be handled by icmp, not vicmp :)

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

16 years agoForgot this.
Evan Cheng [Mon, 12 May 2008 20:08:05 +0000 (20:08 +0000)]
Forgot this.

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

16 years agoHard code CmpInst back to i1 for now while I go track down what in the bitcode reader...
Nate Begeman [Mon, 12 May 2008 20:01:56 +0000 (20:01 +0000)]
Hard code CmpInst back to i1 for now while I go track down what in the bitcode reader/writer is assuming i1
This was breaking a bunch of tests

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

16 years agoRefactor isConsecutiveLoad from X86 to TargetLowering so DAG combiner can make use...
Evan Cheng [Mon, 12 May 2008 19:56:52 +0000 (19:56 +0000)]
Refactor isConsecutiveLoad from X86 to TargetLowering so DAG combiner can make use of it.

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

16 years agoRevert the previous commit. Go ahead and hoist rematerializable instructions.
Bill Wendling [Mon, 12 May 2008 19:47:18 +0000 (19:47 +0000)]
Revert the previous commit. Go ahead and hoist rematerializable instructions.

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

16 years agoAdd support for vicmp/vfcmp codegen, more legalize support coming.
Nate Begeman [Mon, 12 May 2008 19:40:03 +0000 (19:40 +0000)]
Add support for vicmp/vfcmp codegen, more legalize support coming.
This is necessary to unbreak the build.

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

16 years agoOne real change - don't hoist something that's trivially rematerializable. It's
Bill Wendling [Mon, 12 May 2008 19:38:32 +0000 (19:38 +0000)]
One real change - don't hoist something that's trivially rematerializable. It's
possible for it to produce worse code than before.

The rest of this patch is code cleanup.

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

16 years agoFix build breakage
Nate Begeman [Mon, 12 May 2008 19:23:22 +0000 (19:23 +0000)]
Fix build breakage

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

16 years agoAdd two new instructions to the llvm IR, vicmp and vfcmp. see updated LangRef
Nate Begeman [Mon, 12 May 2008 19:01:56 +0000 (19:01 +0000)]
Add two new instructions to the llvm IR, vicmp and vfcmp.  see updated LangRef
for details.  CodeGen support coming in a follow up patch

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

16 years agoMake firstEightPowers const.
Dan Gohman [Mon, 12 May 2008 16:38:14 +0000 (16:38 +0000)]
Make firstEightPowers const.

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

16 years agoUpdate comments.
Dan Gohman [Mon, 12 May 2008 16:34:30 +0000 (16:34 +0000)]
Update comments.

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

16 years agoFilter option names to escape symbols not allowed as C++ identifiers.
Mikhail Glushenkov [Mon, 12 May 2008 16:33:06 +0000 (16:33 +0000)]
Filter option names to escape symbols not allowed as C++ identifiers.

Makes it possible to use options with names like "Wa,".
Also fixes the -Wall option handling as a side-effect.

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

16 years agoMake it possible to choose between different compilation graph definitions at compile...
Mikhail Glushenkov [Mon, 12 May 2008 16:32:24 +0000 (16:32 +0000)]
Make it possible to choose between different compilation graph definitions at compile-time.

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

16 years agoFix some error messages; Make LLVMC pass through the exit code of a failed tool.
Mikhail Glushenkov [Mon, 12 May 2008 16:31:42 +0000 (16:31 +0000)]
Fix some error messages; Make LLVMC pass through the exit code of a failed tool.

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