oota-llvm.git
16 years agofirst step
Chris Lattner [Sat, 12 May 2007 03:23:40 +0000 (03:23 +0000)]
first step

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

16 years agoAdd a known QEMU problem.
Lauro Ramos Venancio [Sat, 12 May 2007 02:36:41 +0000 (02:36 +0000)]
Add a known QEMU problem.

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

16 years agoallow partially materialized modules to be written out, which just strips out
Chris Lattner [Fri, 11 May 2007 23:51:59 +0000 (23:51 +0000)]
allow partially materialized modules to be written out, which just strips out
the functions which haven't been read.

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

16 years agoFix http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049516.html
Devang Patel [Fri, 11 May 2007 23:14:43 +0000 (23:14 +0000)]
Fix lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049516.html

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

16 years agoNew test.
Devang Patel [Fri, 11 May 2007 23:13:19 +0000 (23:13 +0000)]
New test.

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

16 years agosignificantly improve debug output of lsr
Chris Lattner [Fri, 11 May 2007 22:40:34 +0000 (22:40 +0000)]
significantly improve debug output of lsr

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

16 years agoUpdate comments to say "vector" instead of "packed".
Dan Gohman [Fri, 11 May 2007 21:43:24 +0000 (21:43 +0000)]
Update comments to say "vector" instead of "packed".

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

16 years agoFix typos.
Dan Gohman [Fri, 11 May 2007 21:10:54 +0000 (21:10 +0000)]
Fix typos.

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

16 years agoRemove forward-declarations for classes that don't exist.
Dan Gohman [Fri, 11 May 2007 21:05:57 +0000 (21:05 +0000)]
Remove forward-declarations for classes that don't exist.

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

16 years agoAdd explicit keywords to several constructors that now have one argument.
Dan Gohman [Fri, 11 May 2007 21:04:48 +0000 (21:04 +0000)]
Add explicit keywords to several constructors that now have one argument.

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

16 years agoSimplify BranchInst::getSuccessor, avoiding a conditional operator.
Dan Gohman [Fri, 11 May 2007 20:59:29 +0000 (20:59 +0000)]
Simplify BranchInst::getSuccessor, avoiding a conditional operator.

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

16 years agoThis patch extends the LoopUnroll pass to be able to unroll loops
Dan Gohman [Fri, 11 May 2007 20:53:41 +0000 (20:53 +0000)]
This patch extends the LoopUnroll pass to be able to unroll loops
with unknown trip counts. This is left off by default, and a
command-line option enables it. It also begins to separate loop
unrolling into a utility routine; eventually it might be made usable
from other passes.

It currently works by inserting conditional branches between each
unrolled iteration, unless it proves that the trip count is a
multiple of a constant integer > 1, which it currently only does in
the rare case that the trip count expression is a Mul operator with
a ConstantInt operand. Eventually this information might be provided
by other sources, for example by a pass that peels/splits the loop
for this purpose.

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

16 years agofix regressions from my previous checking, including
Chris Lattner [Fri, 11 May 2007 16:58:45 +0000 (16:58 +0000)]
fix regressions from my previous checking, including
Transforms/InstCombine/2006-12-08-ICmp-Combining.ll

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

16 years agoPerform correct actions numbers/sizes computation
Anton Korobeynikov [Fri, 11 May 2007 08:47:35 +0000 (08:47 +0000)]
Perform correct actions numbers/sizes computation

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

16 years agoFix action No calculation in multiple-invoke-one-LP mode
Anton Korobeynikov [Fri, 11 May 2007 08:23:57 +0000 (08:23 +0000)]
Fix action No calculation in multiple-invoke-one-LP mode

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

16 years agoFor PR1411:
Reid Spencer [Fri, 11 May 2007 06:47:16 +0000 (06:47 +0000)]
For PR1411:
Don't try to use {} bracketing when setting a variable in site.exp

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

16 years agofix Transforms/InstCombine/2007-05-10-icmp-or.ll
Chris Lattner [Fri, 11 May 2007 05:55:56 +0000 (05:55 +0000)]
fix Transforms/InstCombine/2007-05-10-icmp-or.ll

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

16 years agonew testcase that crashes instcombine
Chris Lattner [Fri, 11 May 2007 05:55:38 +0000 (05:55 +0000)]
new testcase that crashes instcombine

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

16 years agoDrop ModuleID from comment.
Devang Patel [Fri, 11 May 2007 00:45:58 +0000 (00:45 +0000)]
Drop ModuleID from comment.

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

16 years agofix a memory leak
Chris Lattner [Fri, 11 May 2007 00:43:26 +0000 (00:43 +0000)]
fix a memory leak

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

16 years agoFix a bug where the bcreader could crash on .bc files that were an exact
Chris Lattner [Fri, 11 May 2007 00:00:27 +0000 (00:00 +0000)]
Fix a bug where the bcreader could crash on .bc files that were an exact
multiple of the page size, due to a bug in MappedFile

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

16 years agoDo not generate branches to entry block. This fixes several test suite
Dale Johannesen [Thu, 10 May 2007 23:59:23 +0000 (23:59 +0000)]
Do not generate branches to entry block.  This fixes several test suite
failures on PPC (can happen only when prologue code is null)

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

16 years agoOoops. Some debugging stuff :)
Anton Korobeynikov [Thu, 10 May 2007 22:38:46 +0000 (22:38 +0000)]
Ooops. Some debugging stuff :)

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

16 years agoAllow multiple invokes per landing pad. This (probably) fixes PR1410.
Anton Korobeynikov [Thu, 10 May 2007 22:34:59 +0000 (22:34 +0000)]
Allow multiple invokes per landing pad. This (probably) fixes PR1410.

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

16 years agoLater computations assume we are aligned at this point.
Duncan Sands [Thu, 10 May 2007 18:40:24 +0000 (18:40 +0000)]
Later computations assume we are aligned at this point.

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

16 years agoTypeIds are indexed by j, not i
Anton Korobeynikov [Thu, 10 May 2007 15:10:34 +0000 (15:10 +0000)]
TypeIds are indexed by j, not i

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

16 years agoThese attributes are supported!
Anton Korobeynikov [Thu, 10 May 2007 08:26:24 +0000 (08:26 +0000)]
These attributes are supported!

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

16 years agogar. GCC 3.4.2 also miscompiles llvm at -O3. :(
Chris Lattner [Thu, 10 May 2007 06:42:21 +0000 (06:42 +0000)]
gar.  GCC 3.4.2 also miscompiles llvm at -O3. :(

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

16 years agoanother version of gcc that miscompiles llvm.
Chris Lattner [Thu, 10 May 2007 05:37:14 +0000 (05:37 +0000)]
another version of gcc that miscompiles llvm.

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

16 years agoAnother test for tail mergeing
Dale Johannesen [Thu, 10 May 2007 01:04:28 +0000 (01:04 +0000)]
Another test for tail mergeing

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

16 years agoMake tail merging handle many more cases (all it can, I think).
Dale Johannesen [Thu, 10 May 2007 01:01:49 +0000 (01:01 +0000)]
Make tail merging handle many more cases (all it can, I think).

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

16 years agoadd some notes
Chris Lattner [Thu, 10 May 2007 00:08:04 +0000 (00:08 +0000)]
add some notes

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

16 years agoCan't fold bit_convert into truncating store.
Evan Cheng [Wed, 9 May 2007 21:54:34 +0000 (21:54 +0000)]
Can't fold bit_convert into truncating store.

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

16 years agoCan't fold the bit_convert is the store is a truncating store.
Evan Cheng [Wed, 9 May 2007 21:49:47 +0000 (21:49 +0000)]
Can't fold the bit_convert is the store is a truncating store.

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

16 years agoDo not assert, when case range split metric is zero and JTs are not allowed: just...
Anton Korobeynikov [Wed, 9 May 2007 20:07:08 +0000 (20:07 +0000)]
Do not assert, when case range split metric is zero and JTs are not allowed: just emit binary tree in this case. This
fixes PR1403.

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

16 years agoAdd two ARM known problems.
Lauro Ramos Venancio [Wed, 9 May 2007 19:31:58 +0000 (19:31 +0000)]
Add two ARM known problems.

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

16 years agoPR1399 test case.
Evan Cheng [Wed, 9 May 2007 19:20:37 +0000 (19:20 +0000)]
PR1399 test case.

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

16 years agoTestcase for
Duncan Sands [Wed, 9 May 2007 08:41:26 +0000 (08:41 +0000)]
Testcase for
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049387.html

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

16 years agoFix PR1333
Devang Patel [Wed, 9 May 2007 08:24:12 +0000 (08:24 +0000)]
Fix PR1333
Testcases :
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049451.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049452.html

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

16 years agoNew test.
Devang Patel [Wed, 9 May 2007 08:19:24 +0000 (08:19 +0000)]
New test.

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

16 years agoNew test.
Devang Patel [Wed, 9 May 2007 08:08:46 +0000 (08:08 +0000)]
New test.

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

16 years agoarm no longer experimental, c++ eh support is?
Chris Lattner [Wed, 9 May 2007 06:23:58 +0000 (06:23 +0000)]
arm no longer experimental, c++ eh support is?

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

16 years agoadd a meta-blurb about the 2.0 release
Chris Lattner [Wed, 9 May 2007 05:27:05 +0000 (05:27 +0000)]
add a meta-blurb about the 2.0 release

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

16 years agostrip the llvm 1.9 info out of the release notes
Chris Lattner [Wed, 9 May 2007 04:58:11 +0000 (04:58 +0000)]
strip the llvm 1.9 info out of the release notes

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

16 years agoSwitch BCC, MOVCCr, etc. to PredicateOperand.
Evan Cheng [Tue, 8 May 2007 21:08:43 +0000 (21:08 +0000)]
Switch BCC, MOVCCr, etc. to PredicateOperand.

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

16 years agoPredicateOperand can be used as a normal operand for isel.
Evan Cheng [Tue, 8 May 2007 21:06:08 +0000 (21:06 +0000)]
PredicateOperand can be used as a normal operand for isel.

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

16 years agoIf a PredicateOperand has an empty ExecuteAlways field, treat it as if a normal opera...
Evan Cheng [Tue, 8 May 2007 21:04:07 +0000 (21:04 +0000)]
If a PredicateOperand has an empty ExecuteAlways field, treat it as if a normal operand for isel.

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

16 years agoadd the & back. I'm not sure why bill removed it.
Chris Lattner [Tue, 8 May 2007 20:08:06 +0000 (20:08 +0000)]
add the & back.  I'm not sure why bill removed it.

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

16 years agoChange names from RA to something unique to get rid of naming conflicts with
Bill Wendling [Tue, 8 May 2007 19:02:46 +0000 (19:02 +0000)]
Change names from RA to something unique to get rid of naming conflicts with
certain linkers...

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

16 years agoEliminate MarkVirtRegAliveInBlock recursion.
Evan Cheng [Tue, 8 May 2007 19:00:00 +0000 (19:00 +0000)]
Eliminate MarkVirtRegAliveInBlock recursion.

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

16 years agoAdd MachineBasicBlock preds / succs reverse iterators.
Evan Cheng [Tue, 8 May 2007 18:55:03 +0000 (18:55 +0000)]
Add MachineBasicBlock preds / succs reverse iterators.

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

16 years agoNew test for PR1400
Devang Patel [Tue, 8 May 2007 18:08:20 +0000 (18:08 +0000)]
New test for PR1400

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

16 years agotestcase for CodeGenPrepare bug fixed yesterday
Dale Johannesen [Tue, 8 May 2007 17:44:36 +0000 (17:44 +0000)]
testcase for CodeGenPrepare bug fixed yesterday

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

16 years agoR0 is a sub-register of X0, etc.
Evan Cheng [Tue, 8 May 2007 17:03:51 +0000 (17:03 +0000)]
R0 is a sub-register of X0, etc.

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

16 years agoFix various whitespace inconsistencies.
Dan Gohman [Tue, 8 May 2007 15:19:19 +0000 (15:19 +0000)]
Fix various whitespace inconsistencies.

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

16 years agoCorrect the comment for ApproximateLoopSize to reflect what it actually does.
Dan Gohman [Tue, 8 May 2007 15:14:19 +0000 (15:14 +0000)]
Correct the comment for ApproximateLoopSize to reflect what it actually does.

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

16 years agoSpare '&' in the RUN line.
Bill Wendling [Tue, 8 May 2007 07:49:07 +0000 (07:49 +0000)]
Spare '&' in the RUN line.

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

16 years agoNew test.
Devang Patel [Tue, 8 May 2007 06:10:12 +0000 (06:10 +0000)]
New test.

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

16 years agoupdate comments, no functionality change
Chris Lattner [Tue, 8 May 2007 05:38:32 +0000 (05:38 +0000)]
update comments, no functionality change

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

16 years agoMake a preemptive bitcode format change to support PR1146. This lets us do
Chris Lattner [Tue, 8 May 2007 05:38:01 +0000 (05:38 +0000)]
Make a preemptive bitcode format change to support PR1146.  This lets us do
pr1146 in llvm 2.1 without ugly code to emulate old behavior.  This should
be merged into the 2.0 release branch.

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

16 years agoBumping cvs version number
Tanya Lattner [Tue, 8 May 2007 04:32:07 +0000 (04:32 +0000)]
Bumping cvs version number

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

16 years agoBump version number in cvs
Tanya Lattner [Tue, 8 May 2007 04:22:59 +0000 (04:22 +0000)]
Bump version number in cvs

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

16 years agomove this out of Codegen/Generic, because it requires the ARM backend to be
Chris Lattner [Tue, 8 May 2007 02:19:56 +0000 (02:19 +0000)]
move this out of Codegen/Generic, because it requires the ARM backend to be
linked into llc

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

16 years agomove to CodeGen/ARM/2007-05-07-tailmerge-1.ll
Chris Lattner [Tue, 8 May 2007 02:13:52 +0000 (02:13 +0000)]
move to CodeGen/ARM/2007-05-07-tailmerge-1.ll

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

16 years agoDon't generate branch to entry block.
Dale Johannesen [Tue, 8 May 2007 01:01:04 +0000 (01:01 +0000)]
Don't generate branch to entry block.

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

16 years agoFix PR1390 in a better way.
Lauro Ramos Venancio [Mon, 7 May 2007 23:15:16 +0000 (23:15 +0000)]
Fix PR1390 in a better way.

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

16 years agoFix tests.
Evan Cheng [Mon, 7 May 2007 21:50:07 +0000 (21:50 +0000)]
Fix tests.

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

16 years agoAdd some tests for (conv (load x)) -> (load (conv*)x) xform.
Evan Cheng [Mon, 7 May 2007 21:49:35 +0000 (21:49 +0000)]
Add some tests for (conv (load x)) -> (load (conv*)x) xform.

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

16 years agoFix test case.
Evan Cheng [Mon, 7 May 2007 21:38:05 +0000 (21:38 +0000)]
Fix test case.

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

16 years agoForgot a check.
Evan Cheng [Mon, 7 May 2007 21:36:06 +0000 (21:36 +0000)]
Forgot a check.

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

16 years agoThis is no longer needed after enabling the DAG combiner xform.
Evan Cheng [Mon, 7 May 2007 21:29:41 +0000 (21:29 +0000)]
This is no longer needed after enabling the DAG combiner xform.

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

16 years agoEnable a couple of xforms:
Evan Cheng [Mon, 7 May 2007 21:27:48 +0000 (21:27 +0000)]
Enable a couple of xforms:
- (store (bitconvert v)) -> (store v) if resultant store does not require
higher alignment
- (bitconvert (load v)) -> (load (bitconvert*)v) if resultant load does not
require higher alignment

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

16 years agoHandle some non-exit blocks in tail merging.
Dale Johannesen [Mon, 7 May 2007 20:57:21 +0000 (20:57 +0000)]
Handle some non-exit blocks in tail merging.

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

16 years agoParameter attributes on invoke calls were being lost due to the wrong
Duncan Sands [Mon, 7 May 2007 20:49:28 +0000 (20:49 +0000)]
Parameter attributes on invoke calls were being lost due to the wrong
attribute index being used.  Fix proposed by Anton Korobeynikov, who
asked me to implement and commit it for him.  This is PR1398.

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

16 years agoTestcase for PR1398.
Duncan Sands [Mon, 7 May 2007 20:45:20 +0000 (20:45 +0000)]
Testcase for PR1398.

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

16 years agoInitialize variable to null so it has a value in the off chance that a
Reid Spencer [Mon, 7 May 2007 18:50:07 +0000 (18:50 +0000)]
Initialize variable to null so it has a value in the off chance that a
memory buffer couldn't be allocated.

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

16 years agoUpdate.
Evan Cheng [Mon, 7 May 2007 17:58:13 +0000 (17:58 +0000)]
Update.

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

16 years agoUnbreak VC++ build.
Jeff Cohen [Mon, 7 May 2007 15:21:46 +0000 (15:21 +0000)]
Unbreak VC++ build.

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

16 years agouse the new MemoryBuffer interfaces to simplify error reporting in clients.
Chris Lattner [Sun, 6 May 2007 23:45:49 +0000 (23:45 +0000)]
use the new MemoryBuffer interfaces to simplify error reporting in clients.

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

16 years agoEnhance MemoryBuffer to return error messages in strings if they occur.
Chris Lattner [Sun, 6 May 2007 23:32:36 +0000 (23:32 +0000)]
Enhance MemoryBuffer to return error messages in strings if they occur.

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

16 years agoremove dead option
Chris Lattner [Sun, 6 May 2007 23:24:42 +0000 (23:24 +0000)]
remove dead option

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

16 years agothis is obsolete
Chris Lattner [Sun, 6 May 2007 23:21:05 +0000 (23:21 +0000)]
this is obsolete

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

16 years agolink to the bitcode doc
Chris Lattner [Sun, 6 May 2007 23:20:06 +0000 (23:20 +0000)]
link to the bitcode doc

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

16 years agobzip2 is gone
Chris Lattner [Sun, 6 May 2007 23:18:44 +0000 (23:18 +0000)]
bzip2 is gone

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

16 years agoFix PR1395, by passing the ID correctly
Chris Lattner [Sun, 6 May 2007 23:13:56 +0000 (23:13 +0000)]
Fix PR1395, by passing the ID correctly

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

16 years agoUpdate fields
Anton Korobeynikov [Sun, 6 May 2007 20:33:02 +0000 (20:33 +0000)]
Update fields

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

16 years agoadd this back
Chris Lattner [Sun, 6 May 2007 20:31:17 +0000 (20:31 +0000)]
add this back

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

16 years agoDetabify
Anton Korobeynikov [Sun, 6 May 2007 20:14:21 +0000 (20:14 +0000)]
Detabify

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

16 years agoUpdate MSIL BE. This patch fixes most weird glitches outlined in
Anton Korobeynikov [Sun, 6 May 2007 20:13:33 +0000 (20:13 +0000)]
Update MSIL BE. This patch fixes most weird glitches outlined in
README.txt. Patch by Roman Samoilov!

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

16 years agolib/Bytecode is dead
Chris Lattner [Sun, 6 May 2007 19:51:20 +0000 (19:51 +0000)]
lib/Bytecode is dead

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

16 years agomove this to lib/Archive
Chris Lattner [Sun, 6 May 2007 19:50:53 +0000 (19:50 +0000)]
move this to lib/Archive

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

16 years agobuild lib/Archive instead of lib/Bytecode
Chris Lattner [Sun, 6 May 2007 19:50:06 +0000 (19:50 +0000)]
build lib/Archive instead of lib/Bytecode

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

16 years agoadjust this to live in lib/Archive
Chris Lattner [Sun, 6 May 2007 19:49:28 +0000 (19:49 +0000)]
adjust this to live in lib/Archive

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

16 years agoremove bytecode headers
Chris Lattner [Sun, 6 May 2007 19:47:36 +0000 (19:47 +0000)]
remove bytecode headers

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

16 years agoremove dead header
Chris Lattner [Sun, 6 May 2007 19:46:23 +0000 (19:46 +0000)]
remove dead header

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

16 years agoFix a buggy conversion from bytecode to bitcode
Chris Lattner [Sun, 6 May 2007 19:43:09 +0000 (19:43 +0000)]
Fix a buggy conversion from bytecode to bitcode

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

16 years agoremove bytecode reader
Chris Lattner [Sun, 6 May 2007 19:42:57 +0000 (19:42 +0000)]
remove bytecode reader

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

16 years agoremove the old bc writer
Chris Lattner [Sun, 6 May 2007 19:33:40 +0000 (19:33 +0000)]
remove the old bc writer

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

16 years agofix off-by-one that caused the llvm2cpp test to fail
Chris Lattner [Sun, 6 May 2007 19:27:46 +0000 (19:27 +0000)]
fix off-by-one that caused the llvm2cpp test to fail

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

16 years agoremove libbzip2 from this. This should use llvm-config or something.
Chris Lattner [Sun, 6 May 2007 19:21:48 +0000 (19:21 +0000)]
remove libbzip2 from this.  This should use llvm-config or something.

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