oota-llvm.git
20 years agoAdd new function, autoconf support required tho
Chris Lattner [Fri, 2 Apr 2004 05:04:03 +0000 (05:04 +0000)]
Add new function, autoconf support required tho

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

20 years agoBug fixed
Chris Lattner [Thu, 1 Apr 2004 20:31:29 +0000 (20:31 +0000)]
Bug fixed

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

20 years agoFix PR310 and TailDup/2004-04-01-DemoteRegToStack.llx
Chris Lattner [Thu, 1 Apr 2004 20:28:45 +0000 (20:28 +0000)]
Fix PR310 and TailDup/2004-04-01-DemoteRegToStack.llx

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

20 years agoNew testcase for PR310
Chris Lattner [Thu, 1 Apr 2004 20:28:35 +0000 (20:28 +0000)]
New testcase for PR310

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

20 years agoRemove some assertions that are now bogus with the last patch I put in
Chris Lattner [Thu, 1 Apr 2004 19:21:46 +0000 (19:21 +0000)]
Remove some assertions that are now bogus with the last patch I put in

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

20 years agoBug fixed
Chris Lattner [Thu, 1 Apr 2004 19:09:49 +0000 (19:09 +0000)]
Bug fixed

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

20 years agoFix PR306: Loop simplify incorrectly updates dominator information
Chris Lattner [Thu, 1 Apr 2004 19:06:07 +0000 (19:06 +0000)]
Fix PR306: Loop simplify incorrectly updates dominator information
Testcase: LoopSimplify/2004-04-01-IncorrectDomUpdate.ll

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

20 years agoNew testcase for PR306
Chris Lattner [Thu, 1 Apr 2004 19:05:54 +0000 (19:05 +0000)]
New testcase for PR306

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

20 years agoFix grammar.
Misha Brukman [Thu, 1 Apr 2004 17:15:42 +0000 (17:15 +0000)]
Fix grammar.

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

20 years agoAdd support for select constant expressions to the CBE, fixing SIOD
Chris Lattner [Thu, 1 Apr 2004 05:28:26 +0000 (05:28 +0000)]
Add support for select constant expressions to the CBE, fixing SIOD

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

20 years agoSimplify code by using the more powerful BuildMI forms.
Chris Lattner [Thu, 1 Apr 2004 04:06:09 +0000 (04:06 +0000)]
Simplify code by using the more powerful BuildMI forms.
Implement a small optimization.  In test/Regression/CodeGen/X86/select.ll,
we now generate this for foldSel3:

foldSel3:
        mov %AL, BYTE PTR [%ESP + 4]
        fld DWORD PTR [%ESP + 8]
        fld DWORD PTR [%ESP + 12]
        mov %EAX, DWORD PTR [%ESP + 16]
        mov %ECX, DWORD PTR [%ESP + 20]
        cmp %EAX, %ECX
        fxch %ST(1)
        fcmovae %ST(0), %ST(1)
***     fstp %ST(1)
        ret

Instead of:

foldSel3:
        mov %AL, BYTE PTR [%ESP + 4]
        fld DWORD PTR [%ESP + 8]
        fld DWORD PTR [%ESP + 12]
        mov %EAX, DWORD PTR [%ESP + 16]
        mov %ECX, DWORD PTR [%ESP + 20]
        cmp %EAX, %ECX
        fxch %ST(1)
        fcmovae %ST(0), %ST(1)
***     fxch %ST(1)
***     fstp %ST(0)
        ret

In practice, this only effects code size: performance should be basically
unaffected.

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

20 years agoWrap at 80 cols
Chris Lattner [Thu, 1 Apr 2004 04:03:27 +0000 (04:03 +0000)]
Wrap at 80 cols

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

20 years agoAllow converting a builder to an iterator
Chris Lattner [Thu, 1 Apr 2004 04:03:10 +0000 (04:03 +0000)]
Allow converting a builder to an iterator

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

20 years agoTests for fp cmov's that I forgot to check in earlier
Chris Lattner [Thu, 1 Apr 2004 03:47:56 +0000 (03:47 +0000)]
Tests for fp cmov's that I forgot to check in earlier

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

20 years agoClear out all of the changes. Reset version numbers to 1.3
Chris Lattner [Thu, 1 Apr 2004 00:41:31 +0000 (00:41 +0000)]
Clear out all of the changes.  Reset version numbers to 1.3
add note about select

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

20 years agoAdd clear() forwarding method.
Brian Gaeke [Wed, 31 Mar 2004 22:43:12 +0000 (22:43 +0000)]
Add clear() forwarding method.

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

20 years agoGenerate slightly smaller code, "test R, R" instead of "cmp R, 0"
Chris Lattner [Wed, 31 Mar 2004 22:22:36 +0000 (22:22 +0000)]
Generate slightly smaller code, "test R, R" instead of "cmp R, 0"

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

20 years agoThe X86 backend no longer needs the select lowering pass.
Chris Lattner [Wed, 31 Mar 2004 22:03:46 +0000 (22:03 +0000)]
The X86 backend no longer needs the select lowering pass.

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

20 years agoCodegen FP select instructions into X86 conditional moves. Annoyingly enough
Chris Lattner [Wed, 31 Mar 2004 22:03:35 +0000 (22:03 +0000)]
Codegen FP select instructions into X86 conditional moves.  Annoyingly enough
the X86 does not support a full set of fp cmove instructions, so we can't always
fold the condition into the select.  :(  Yuck.

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

20 years agoAdd support for floating point conditional move instructions
Chris Lattner [Wed, 31 Mar 2004 22:02:36 +0000 (22:02 +0000)]
Add support for floating point conditional move instructions

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

20 years agoAdd support for FP cmoves
Chris Lattner [Wed, 31 Mar 2004 22:02:21 +0000 (22:02 +0000)]
Add support for FP cmoves

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

20 years agoAdd FP conditional move instructions, which annoyingly have special properties
Chris Lattner [Wed, 31 Mar 2004 22:02:13 +0000 (22:02 +0000)]
Add FP conditional move instructions, which annoyingly have special properties
that require the asmwriter to be extended (printing implicit uses before the
explicit operands)

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

20 years agoAdd warning
Chris Lattner [Wed, 31 Mar 2004 22:00:30 +0000 (22:00 +0000)]
Add warning

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

20 years agoMBB::remove should not modify the iterator passed in
Chris Lattner [Wed, 31 Mar 2004 21:59:59 +0000 (21:59 +0000)]
MBB::remove should not modify the iterator passed in

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

20 years agoMachineBasicBlock::remove should not modify the iterator passed in
Chris Lattner [Wed, 31 Mar 2004 21:59:29 +0000 (21:59 +0000)]
MachineBasicBlock::remove should not modify the iterator passed in

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

20 years agoImprove description, add warning
Chris Lattner [Wed, 31 Mar 2004 21:59:07 +0000 (21:59 +0000)]
Improve description, add warning

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

20 years agoMachineBasicBlock::remove should not change the iterator passed into it
Chris Lattner [Wed, 31 Mar 2004 21:58:50 +0000 (21:58 +0000)]
MachineBasicBlock::remove should not change the iterator passed into it

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

20 years agoFactor out getStaticStackSize from InsertPrologCode(), so that I can more
Brian Gaeke [Wed, 31 Mar 2004 20:58:37 +0000 (20:58 +0000)]
Factor out getStaticStackSize from InsertPrologCode(), so that I can more
easily steal it for a separate use in the reoptimizer.

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

20 years agoUse the true, decoded name of the archive member in getObjectType.
Brian Gaeke [Wed, 31 Mar 2004 19:51:00 +0000 (19:51 +0000)]
Use the true, decoded name of the archive member in getObjectType.

In ReadArchiveBuffer, make sure that MemberName is set in the case where
getObjectType would want to return SVR4LongFilename.

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

20 years agoAvoid TRUE and FALSE which apparently conflict with some macros on OSX
Chris Lattner [Wed, 31 Mar 2004 03:49:47 +0000 (03:49 +0000)]
Avoid TRUE and FALSE which apparently conflict with some macros on OSX

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

20 years agoFix linking of constant expr casts due to type resolution changes. With
Chris Lattner [Wed, 31 Mar 2004 02:58:28 +0000 (02:58 +0000)]
Fix linking of constant expr casts due to type resolution changes.  With
this and the other patches 253.perlbmk links again.

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

20 years agoAdd support for constant expr casts
Chris Lattner [Wed, 31 Mar 2004 02:56:11 +0000 (02:56 +0000)]
Add support for constant expr casts

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

20 years agoAdd support for reading constantexpr select instructions
Chris Lattner [Wed, 31 Mar 2004 02:53:59 +0000 (02:53 +0000)]
Add support for reading constantexpr select instructions

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

20 years agoFix a latent bug in select constantexpr handling that was broke 253.perlbmk
Chris Lattner [Tue, 30 Mar 2004 22:51:03 +0000 (22:51 +0000)]
Fix a latent bug in select constantexpr handling that was broke 253.perlbmk

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

20 years agoCorrectly update LiveVariables when an instruction changes
Alkis Evlogimenos [Tue, 30 Mar 2004 22:44:39 +0000 (22:44 +0000)]
Correctly update LiveVariables when an instruction changes

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

20 years agoFold comparisons into select instructions, making much better code and
Chris Lattner [Tue, 30 Mar 2004 22:39:09 +0000 (22:39 +0000)]
Fold comparisons into select instructions, making much better code and
using our broad selection of movcc instructions.  :)

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

20 years agoTest folding comparisons into select instructions
Chris Lattner [Tue, 30 Mar 2004 22:37:04 +0000 (22:37 +0000)]
Test folding comparisons into select instructions

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

20 years agoNew testcase. This now codegens to:
Chris Lattner [Tue, 30 Mar 2004 22:36:52 +0000 (22:36 +0000)]
New testcase.  This now codegens to:

max:
        mov %EAX, DWORD PTR [%ESP + 4]
        mov %ECX, DWORD PTR [%ESP + 8]
        cmp %EAX, %ECX
        cmovle %EAX, %ECX
        ret

Someone should really implement passing arguments through registers for
known-internal functions.  :)

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

20 years agoImplement spill code folding for all of the conditional move instructions
Chris Lattner [Tue, 30 Mar 2004 21:29:47 +0000 (21:29 +0000)]
Implement spill code folding for all of the conditional move instructions

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

20 years agoAdd direct support for integer select instructions, though we still don't support
Chris Lattner [Tue, 30 Mar 2004 21:22:00 +0000 (21:22 +0000)]
Add direct support for integer select instructions, though we still don't support
folding compares into the select yet.

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

20 years agoNew testcase for select instructions
Chris Lattner [Tue, 30 Mar 2004 21:21:14 +0000 (21:21 +0000)]
New testcase for select instructions

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

20 years agoFix bug: Assembler/2004-03-30-UnclosedFunctionCrash.llx
Chris Lattner [Tue, 30 Mar 2004 20:58:25 +0000 (20:58 +0000)]
Fix bug: Assembler/2004-03-30-UnclosedFunctionCrash.llx

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

20 years agoNew testcase that crashes the assembler
Chris Lattner [Tue, 30 Mar 2004 20:58:00 +0000 (20:58 +0000)]
New testcase that crashes the assembler

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

20 years agoFix some serious bugs in the cmov descriptions, which didn't cause a problem because
Chris Lattner [Tue, 30 Mar 2004 20:18:02 +0000 (20:18 +0000)]
Fix some serious bugs in the cmov descriptions, which didn't cause a problem because
we never generated them

Make indentation a bit more consistent

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

20 years agoStart cleaning up this pass so that I can debug it.
Brian Gaeke [Tue, 30 Mar 2004 19:53:46 +0000 (19:53 +0000)]
Start cleaning up this pass so that I can debug it.

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

20 years agoOops, actually USE the previously computed value
Chris Lattner [Tue, 30 Mar 2004 19:45:39 +0000 (19:45 +0000)]
Oops, actually USE the previously computed value

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

20 years agoTest general value/value selection which we can do now that we use the
Chris Lattner [Tue, 30 Mar 2004 19:45:11 +0000 (19:45 +0000)]
Test general value/value selection which we can do now that we use the
select instruction

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

20 years agoNow that all the code generators support the select instruction, and the instcombine
Chris Lattner [Tue, 30 Mar 2004 19:44:05 +0000 (19:44 +0000)]
Now that all the code generators support the select instruction, and the instcombine
pass can eliminate many nasty cases of them, start generating them in the optimizers

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

20 years agoImplement select.ll:test[3-6]
Chris Lattner [Tue, 30 Mar 2004 19:37:13 +0000 (19:37 +0000)]
Implement select.ll:test[3-6]

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

20 years agoAdd some testcases for select simplification
Chris Lattner [Tue, 30 Mar 2004 19:36:54 +0000 (19:36 +0000)]
Add some testcases for select simplification

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

20 years agoFix a fairly major performance problem. If a PHI node had a constant as
Chris Lattner [Tue, 30 Mar 2004 19:10:12 +0000 (19:10 +0000)]
Fix a fairly major performance problem.  If a PHI node had a constant as
an incoming value from a block, the selector would evaluate the constant
at the TOP of the block instead of at the end of the block.  This made the
live range for the constant span the entire block, increasing register
pressure needlessly.

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

20 years agoAdd the select lowering pass to get initial support for select instructions
Chris Lattner [Tue, 30 Mar 2004 18:41:59 +0000 (18:41 +0000)]
Add the select lowering pass to get initial support for select instructions

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

20 years agoAdd a simple select instruction lowering pass
Chris Lattner [Tue, 30 Mar 2004 18:41:10 +0000 (18:41 +0000)]
Add a simple select instruction lowering pass

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

20 years agoAdd some new methods
Chris Lattner [Tue, 30 Mar 2004 00:20:08 +0000 (00:20 +0000)]
Add some new methods

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

20 years agoDon't warn about a null live range if the Value is a ConstantIntegral.
Brian Gaeke [Mon, 29 Mar 2004 21:58:41 +0000 (21:58 +0000)]
Don't warn about a null live range if the Value is a ConstantIntegral.
Otherwise, if you're in debugging mode, you get warnings for (apparently)
every immediate constant in the function during reg. allocation.

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

20 years agoChange how the beginnings and ends of MachineFunctions are printed. Get
Brian Gaeke [Mon, 29 Mar 2004 21:58:31 +0000 (21:58 +0000)]
Change how the beginnings and ends of MachineFunctions are printed. Get
rid of the funny cast.

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

20 years agoAdjust to new itf
Chris Lattner [Mon, 29 Mar 2004 20:42:49 +0000 (20:42 +0000)]
Adjust to new itf

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

20 years agoRelax the interface a bit
Chris Lattner [Mon, 29 Mar 2004 20:42:38 +0000 (20:42 +0000)]
Relax the interface a bit

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

20 years agoMerged in RELEASE_12.
John Criswell [Mon, 29 Mar 2004 20:23:11 +0000 (20:23 +0000)]
Merged in RELEASE_12.

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

20 years agoMerged in RELEASE_12.
John Criswell [Mon, 29 Mar 2004 20:22:30 +0000 (20:22 +0000)]
Merged in RELEASE_12.
This fixes the zlib linking problems.

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

20 years agoHandle -0.0 correctly
Chris Lattner [Mon, 29 Mar 2004 19:51:24 +0000 (19:51 +0000)]
Handle -0.0 correctly

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

20 years agoAdd a faq entry
Chris Lattner [Mon, 29 Mar 2004 19:14:35 +0000 (19:14 +0000)]
Add a faq entry

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

20 years agoAdd a bunch of methods that should have been added a long time ago.
Chris Lattner [Mon, 29 Mar 2004 02:37:53 +0000 (02:37 +0000)]
Add a bunch of methods that should have been added a long time ago.

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

20 years agoAdd another check
Chris Lattner [Mon, 29 Mar 2004 00:29:36 +0000 (00:29 +0000)]
Add another check

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

20 years agoFix an assertion
Chris Lattner [Mon, 29 Mar 2004 00:17:20 +0000 (00:17 +0000)]
Fix an assertion
Contributed by Reid Spencer

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

20 years agoMake error message a bit nicer.
Chris Lattner [Mon, 29 Mar 2004 00:16:01 +0000 (00:16 +0000)]
Make error message a bit nicer.
Contributed by Reid Spencer

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

20 years agoAdd two methods which have been needed for a long time: Type::get(Un)signedVersion
Chris Lattner [Fri, 26 Mar 2004 21:43:22 +0000 (21:43 +0000)]
Add two methods which have been needed for a long time: Type::get(Un)signedVersion

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

20 years agoMake sure to get the headers from zlib correctly
Chris Lattner [Fri, 26 Mar 2004 17:04:53 +0000 (17:04 +0000)]
Make sure to get the headers from zlib correctly

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

20 years agoX % -1 == X % 1 == 0
Chris Lattner [Fri, 26 Mar 2004 16:11:24 +0000 (16:11 +0000)]
X % -1 == X % 1 == 0

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

20 years agoTwo changes:
Chris Lattner [Thu, 25 Mar 2004 22:59:29 +0000 (22:59 +0000)]
Two changes:
#1 is to unconditionally strip constantpointerrefs out of
instruction operands where they are absolutely pointless and inhibit
optimization.  GRRR!

#2 is to implement InstCombine/getelementptr_const.ll

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

20 years agoNew testcase
Chris Lattner [Thu, 25 Mar 2004 22:59:06 +0000 (22:59 +0000)]
New testcase

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

20 years agoMinor efficiency improvement, finegrainify namespacification
Chris Lattner [Thu, 25 Mar 2004 22:56:03 +0000 (22:56 +0000)]
Minor efficiency improvement, finegrainify namespacification

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

20 years agoAdd note about setting up linux systems to directly execute LLVM bytecode files
Chris Lattner [Thu, 25 Mar 2004 20:38:40 +0000 (20:38 +0000)]
Add note about setting up linux systems to directly execute LLVM bytecode files
Fixes PR303

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

20 years agoHrm, we were leaking ~1M of garbage that valgrind never told us about because
Chris Lattner [Fri, 19 Mar 2004 23:34:33 +0000 (23:34 +0000)]
Hrm, we were leaking ~1M of garbage that valgrind never told us about because
it was "reachable".  Cute.

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

20 years agoAdd a dose of reality into the release notes
Chris Lattner [Fri, 19 Mar 2004 19:22:28 +0000 (19:22 +0000)]
Add a dose of reality into the release notes

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

20 years agoTeach the optimizer to delete zero sized alloca's (but not mallocs!)
Chris Lattner [Fri, 19 Mar 2004 06:08:10 +0000 (06:08 +0000)]
Teach the optimizer to delete zero sized alloca's (but not mallocs!)

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

20 years agoNew testcase, the optimizer can delete zero sized allocas
Chris Lattner [Fri, 19 Mar 2004 06:07:43 +0000 (06:07 +0000)]
New testcase, the optimizer can delete zero sized allocas

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

20 years agoPerhaps the last bugfix before the release? HOPEFULLY! :)
Chris Lattner [Fri, 19 Mar 2004 04:26:04 +0000 (04:26 +0000)]
Perhaps the last bugfix before the release?  HOPEFULLY!  :)

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

20 years agoFix PR299: [Sparc] Code generator asserts on alloc of zero size type
Chris Lattner [Fri, 19 Mar 2004 04:21:43 +0000 (04:21 +0000)]
Fix PR299: [Sparc] Code generator asserts on alloc of zero size type

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

20 years agoMalloc doesn't kill a load. This patch need not go into 1.2 though.
Chris Lattner [Thu, 18 Mar 2004 17:01:26 +0000 (17:01 +0000)]
Malloc doesn't kill a load.  This patch need not go into 1.2 though.

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

20 years agoFix a minor wording bug in the manual
Chris Lattner [Thu, 18 Mar 2004 14:58:55 +0000 (14:58 +0000)]
Fix a minor wording bug in the manual

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

20 years agoThis is the last remaining bug that I know of in the loop extractor. The loop
Chris Lattner [Thu, 18 Mar 2004 06:41:59 +0000 (06:41 +0000)]
This is the last remaining bug that I know of in the loop extractor.  The loop
extractor has extracted hundreds of loops from the SPEC benchmarks without crashing
and without misoptimizing the programs.

This testcase could be reduced substantially more by hand, but I don't have time
to work on it right now.

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

20 years agoFix a really nasty bug that was breaking ijpeg in LLC mode. We were incorrectly
Chris Lattner [Thu, 18 Mar 2004 06:29:54 +0000 (06:29 +0000)]
Fix a really nasty bug that was breaking ijpeg in LLC mode.  We were incorrectly
folding load instructions into other instructions across free instruction
boundaries.  Perhaps this will also fix the other strange failures?

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

20 years agoFix bug: CodeExtractor/2004-03-17-MissedLiveIns.ll
Chris Lattner [Thu, 18 Mar 2004 05:56:32 +0000 (05:56 +0000)]
Fix bug: CodeExtractor/2004-03-17-MissedLiveIns.ll
With this fix we now successfully extract all 149 loops from 256.bzip2 without
crashing or miscompiling the program!

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

20 years agoNew testcase, reduced from 256.bzip2
Chris Lattner [Thu, 18 Mar 2004 05:55:29 +0000 (05:55 +0000)]
New testcase, reduced from 256.bzip2

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

20 years agoAdd statistics to the loop extractor. The loop extractor has successfully
Chris Lattner [Thu, 18 Mar 2004 05:46:10 +0000 (05:46 +0000)]
Add statistics to the loop extractor.  The loop extractor has successfully
extracted all 63 loops for Olden/bh without crashing and without
miscompiling the program!!!

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

20 years agoFix problem with PHI nodes having multiple predecessors from different
Chris Lattner [Thu, 18 Mar 2004 05:43:18 +0000 (05:43 +0000)]
Fix problem with PHI nodes having multiple predecessors from different
exit nodes

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

20 years agoFix CodeExtractor/2004-03-17-UpdatePHIsOutsideRegion.ll
Chris Lattner [Thu, 18 Mar 2004 05:38:31 +0000 (05:38 +0000)]
Fix CodeExtractor/2004-03-17-UpdatePHIsOutsideRegion.ll

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

20 years agoNew testcase
Chris Lattner [Thu, 18 Mar 2004 05:33:39 +0000 (05:33 +0000)]
New testcase

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

20 years agoSeriously simplify and correct the PHI node handling code.
Chris Lattner [Thu, 18 Mar 2004 05:28:49 +0000 (05:28 +0000)]
Seriously simplify and correct the PHI node handling code.

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

20 years agoFix CodeExtractor/2004-03-17-OutputMismatch.ll
Chris Lattner [Thu, 18 Mar 2004 04:12:05 +0000 (04:12 +0000)]
Fix CodeExtractor/2004-03-17-OutputMismatch.ll

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

20 years agoNew testcase that crashes the code extractor
Chris Lattner [Thu, 18 Mar 2004 04:10:02 +0000 (04:10 +0000)]
New testcase that crashes the code extractor

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

20 years agoFix several bugs in the extractor:
Chris Lattner [Thu, 18 Mar 2004 03:49:40 +0000 (03:49 +0000)]
Fix several bugs in the extractor:
1. Names were not put on the new arguments created (ok, this just helps sanity :)
2. Fix outgoing pointer values
3. Do not insert stores for values that had not been computed
4. Fix some wierd problems with the outset calculation

This fixes CodeExtractor/2004-03-14-DominanceProblem.ll, making the extractor
work on at least one simple case!

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

20 years agoThe code extractor needs dominator info. Provide it
Chris Lattner [Thu, 18 Mar 2004 03:48:06 +0000 (03:48 +0000)]
The code extractor needs dominator info.  Provide it

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

20 years agoThe code extractor needs dominator information, so we provide it.
Chris Lattner [Thu, 18 Mar 2004 03:47:46 +0000 (03:47 +0000)]
The code extractor needs dominator information, so we provide it.

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

20 years agoPrune #includes, moving the module interface to the front. Note that this
Chris Lattner [Thu, 18 Mar 2004 03:15:29 +0000 (03:15 +0000)]
Prune #includes, moving the module interface to the front.  Note that this
exposed the fact that the header was not self-contained.  There is a reason
we do things :)

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

20 years agoMake this header file self-contained
Chris Lattner [Thu, 18 Mar 2004 03:14:56 +0000 (03:14 +0000)]
Make this header file self-contained

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

20 years agoFix a HORRIBLY NASTY bug that caused siod to stop working last night.
Chris Lattner [Wed, 17 Mar 2004 23:22:04 +0000 (23:22 +0000)]
Fix a HORRIBLY NASTY bug that caused siod to stop working last night.

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

20 years agoFix a tag-o
Chris Lattner [Wed, 17 Mar 2004 21:33:32 +0000 (21:33 +0000)]
Fix a tag-o

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

20 years agoRewrite the second on AnalysisUsage usage. This documents the new
Chris Lattner [Wed, 17 Mar 2004 21:09:55 +0000 (21:09 +0000)]
Rewrite the second on AnalysisUsage usage.  This documents the new
addRequiredTransitive member that Misha added, and explains the whole
concept a lot better.  Also, the document used incorrect "subsubsection"
tags instead of "doc_subsubsection" which this fixes.

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