[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFolding.cpp updated: 1.117 -> 1.118 --- Log message: Clean up ConstantFoldCastInstruction. --- Diffs of the changes: (+30 -53) ConstantFolding.cpp | 83 ++-- 1 files changed, 30 insertions(+), 5

Re: [llvm-commits] SETCC Patches #2

2006-12-18 Thread Chris Lattner
It would be better to split up the "EqualTo" predicate here so that there was one for FP and one for integers. When the FP part of this lands, you'll want "Unordered" "Equal" and "LessThan" instead of just LessThan + Equal. Okay, good idea. Could you please review the CF.patch file which is att

Re: [llvm-commits] [llvm-gcc] Cast Fix

2006-12-18 Thread Chris Lattner
>> You're basing all of the checks here on whether or not the LLVM types >> are signed. I understand that this is the most expedient way to get >> stuff working in the short term, but this isn't going to work long >> term, as the ->isSigned() methods are not going to exist any more. >> You should

Re: [llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

2006-12-18 Thread Chris Lattner
On Dec 18, 2006, at 7:16 PM, Reid Spencer wrote: > Rewrite ConstantFoldCastInstruction so that it doesn't use any of the > ConstRules. Remove the casting rules from ConstRules and > subclasses. This > cleans up ConstantFolding significantly. Passes all tests. Nice! > case Instruction::UIToF

[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: ConstantFolding.cpp updated: 1.116 -> 1.117 --- Log message: Rewrite ConstantFoldCastInstruction so that it doesn't use any of the ConstRules. Remove the casting rules from ConstRules and subclasses. This cleans up ConstantFolding significantly. Passes all

[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/tripcount_infinite.llx

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify: tripcount_infinite.llx updated: 1.3 -> 1.4 --- Log message: Back out last revision, a bit premature, its not an upgrade-only change. --- Diffs of the changes: (+2 -2) tripcount_infinite.llx |4 ++-- 1 files changed,

[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/tripcount_infinite.llx

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify: tripcount_infinite.llx updated: 1.2 -> 1.3 --- Log message: For PR950: http://llvm.org/PR950 : Upgrade this test in preparation for the SETCC patch. --- Diffs of the changes: (+2 -2) tripcount_infinite.llx |4 ++-- 1

[llvm-commits] CVS: llvm/test/Regression/Transforms/GlobalOpt/2006-07-07-InlineAsmCrash.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Transforms/GlobalOpt: 2006-07-07-InlineAsmCrash.ll updated: 1.1 -> 1.2 --- Log message: For PR950: http://llvm.org/PR950 : Upgrade this test in preparation for the SETCC patch. --- Diffs of the changes: (+1 -1) 2006-07-07-InlineAsmCrash.ll |2

[llvm-commits] CVS: llvm/test/Regression/Linker/2003-04-26-NullPtrLinkProblem.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/Linker: 2003-04-26-NullPtrLinkProblem.ll updated: 1.3 -> 1.4 --- Log message: For PR950: http://llvm.org/PR950 : Upgrade this test in preparation for the SETCC patch. --- Diffs of the changes: (+1 -1) 2003-04-26-NullPtrLinkProblem.ll |2 +- 1 f

[llvm-commits] CVS: llvm/test/Regression/ExecutionEngine/2003-01-04-LoopTest.ll 2003-06-04-bzip2-bug.ll test-branch.ll test-cast.ll test-loop.ll test-setcond-int.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/ExecutionEngine: 2003-01-04-LoopTest.ll updated: 1.2 -> 1.3 2003-06-04-bzip2-bug.ll updated: 1.2 -> 1.3 test-branch.ll updated: 1.6 -> 1.7 test-cast.ll updated: 1.11 -> 1.12 test-loop.ll updated: 1.2 -> 1.3 test-setcond-int.ll updated: 1.5 -> 1.6 --- Log

[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2003-05-27-phifcmpd.ll 2003-05-28-ManyArgs.ll 2003-07-06-BadIntCmp.ll 2003-07-29-BadConstSbyte.ll badCallArgLRLLVM.ll badarg6.ll badlive.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/CodeGen/Generic: 2003-05-27-phifcmpd.ll updated: 1.3 -> 1.4 2003-05-28-ManyArgs.ll updated: 1.4 -> 1.5 2003-07-06-BadIntCmp.ll updated: 1.3 -> 1.4 2003-07-29-BadConstSbyte.ll updated: 1.4 -> 1.5 badCallArgLRLLVM.ll updated: 1.2 -> 1.3 badarg6.ll updated:

[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/2006-12-07-SelectCrash.ll

2006-12-18 Thread Reid Spencer
Changes in directory llvm/test/Regression/CodeGen/PowerPC: 2006-12-07-SelectCrash.ll updated: 1.1 -> 1.2 --- Log message: This test needs to be upgraded. --- Diffs of the changes: (+3 -3) 2006-12-07-SelectCrash.ll |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llv

[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2006-12-18 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen/SelectionDAG: LegalizeDAG.cpp updated: 1.448 -> 1.449 --- Log message: May need to promote the operand (either sign_extend_inreg or and) before expanding a {s|u}int_to_fp. --- Diffs of the changes: (+29 -18) LegalizeDAG.cpp | 47 ++

[llvm-commits] ppc linux patch 1

2006-12-18 Thread Nick Lewycky
I've done some work on a Linux subtarget for the PPC target. Since I can't test how these affect Darwin PPC, I'm going to email them here starting with little changes and building up. Note that I will not be submitting complete PPC/Linux support; this is just a start that someone else can continue.

[llvm-commits] ppc linux patch 1

2006-12-18 Thread Nick Lewycky
I've done some work on a Linux subtarget for the PPC target. Since I can't test how these affect Darwin PPC, I'm going to email them here starting with little changes and building up. Note that I will not be submitting complete PPC/Linux support; this is just a start that someone else can continue.

[llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Reid Spencer
Changes in directory llvm/include/llvm: Constants.h updated: 1.110 -> 1.111 --- Log message: Correct the description of ConstantInt::isValueValidForType. --- Diffs of the changes: (+5 -3) Constants.h |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Index: llvm/include/ll

[llvm-commits] ppc linux patch 2

2006-12-18 Thread Nick Lewycky
To GNU as, register classes are determined by context. This patch changes the asm printed to print just the register number alone on non-Darwin platforms. The "getRegisterPrefix" function might be a little too magical. I'd be happy to hear any suggestions. Nick Lewycky Index: lib/Target/PowerPC/P

[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.189 -> 1.190 --- Log message: Make ConstantInt not care about sign any more. To ensure the AsmParser can still check the validity of signed values an overload to isValueValidForType was added to allow passing in an int64_t to check.

[llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Reid Spencer
Changes in directory llvm/include/llvm: Constants.h updated: 1.109 -> 1.110 --- Log message: Make ConstantInt not care about sign any more. To ensure the AsmParser can still check the validity of signed values an overload to isValueValidForType was added to allow passing in an int64_t to check.

[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp

2006-12-18 Thread Chris Lattner
Changes in directory llvm/lib/Analysis: ScalarEvolution.cpp updated: 1.72 -> 1.73 --- Log message: Fix a bug in GetConstantFactor for affine expressions, in which the existing code was wrong for things like 3+4*i. --- Diffs of the changes: (+9 -5) ScalarEvolution.cpp | 14 +-

[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

2006-12-18 Thread Chris Lattner
Changes in directory llvm/include/llvm/Support: MathExtras.h updated: 1.36 -> 1.37 --- Log message: Doxgenate comments. Add GreatestCommonDivisor64 --- Diffs of the changes: (+85 -75) MathExtras.h | 160 +++ 1 files changed, 85 inser

Re: [llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Bill Wendling
On 12/18/06, Reid Spencer <[EMAIL PROTECTED]> wrote: > On Mon, 2006-12-18 at 14:14 -0800, Bill Wendling wrote: > > On 12/18/06, Reid Spencer <[EMAIL PROTECTED]> wrote: > > > > > > -if (Bad) { > > > +if (!Bad) { > > >Bad = false; > > > > Isn't the above statem

[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Verifier.cpp updated: 1.175 -> 1.176 --- Log message: Remove a useless statement. --- Diffs of the changes: (+0 -1) Verifier.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/lib/VMCore/Verifier.cpp diff -u llvm/lib/VMCore/Verifier.cpp:1.175 l

Re: [llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Reid Spencer
On Mon, 2006-12-18 at 14:14 -0800, Bill Wendling wrote: > On 12/18/06, Reid Spencer <[EMAIL PROTECTED]> wrote: > > > > -if (Bad) { > > +if (!Bad) { > >Bad = false; > > Isn't the above statement not needed then? Yup. I'll remove it. > > -bw > > >

Re: [llvm-commits] [llvm-gcc] Cast Fix

2006-12-18 Thread Reid Spencer
On Mon, 2006-12-18 at 14:50 -0800, Chris Lattner wrote: > On Dec 18, 2006, at 11:25 AM, Reid Spencer wrote: > > > All, > > > > This patch is needed to update llvm-gcc to avoid inferred casts as > > LLVM > > no longer supports them. This patch is sufficient for getting llvm- > > gcc > > to comp

[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2006-12-18 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen/SelectionDAG: LegalizeDAG.cpp updated: 1.447 -> 1.448 --- Log message: LegalizeSetCCOperands() may end up inserting libcalls. They need to be properly serialized. Do not clear LastCallSEQ_END until that is done. --- Diffs of the changes: (+2 -3) Legaliz

Re: [llvm-commits] [llvm-gcc] Cast Fix

2006-12-18 Thread Chris Lattner
On Dec 18, 2006, at 11:25 AM, Reid Spencer wrote: > All, > > This patch is needed to update llvm-gcc to avoid inferred casts as > LLVM > no longer supports them. This patch is sufficient for getting llvm- > gcc > to compile/work for an X86 target. > > This cast does not include needed changes

Re: [llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Bill Wendling
On 12/18/06, Reid Spencer <[EMAIL PROTECTED]> wrote: > > -if (Bad) { > +if (!Bad) { >Bad = false; Isn't the above statement not needed then? -bw >for (pred_iterator PI = pred_begin(OpBlock), > E = pred_end(OpBlock); PI !

[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Verifier.cpp updated: 1.174 -> 1.175 --- Log message: For PR1042: http://llvm.org/PR1042 : Fix a thinko. We want to check the second case if the first cast *didn't* trigger. --- Diffs of the changes: (+1 -1) Verifier.cpp |2 +- 1 files changed, 1 i

[llvm-commits] CVS: llvm/include/llvm/ADT/BitSetVector.h

2006-12-18 Thread Bill Wendling
Changes in directory llvm/include/llvm/ADT: BitSetVector.h updated: 1.19 -> 1.20 --- Log message: Removed llvm_ostream and used std::ostream instead. --- Diffs of the changes: (+1 -1) BitSetVector.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/Bi

[llvm-commits] [llvm-commit][llvm-gcc]Merge of Reid's changes for cast changes.

2006-12-18 Thread Jim Laskey
Combined.patch Description: Binary data smime.p7s Description: S/MIME cryptographic signature ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm-commit][llvm-gcc]Patches from Scott Michel to build on older system

2006-12-18 Thread Jim Laskey
Index: gcc/config/darwin.h === --- gcc/config/darwin.h (revision 121525) +++ gcc/config/darwin.h (working copy) @@ -433,8 +433,8 @@ %{Zinit*:-init %*} \ "/* APPLE LOCAL mainline 2005-09-01 3449986 */"\ %{mmacosx-version-min=*

[llvm-commits] [llvm-gcc] CastFix For PPC (untested)

2006-12-18 Thread Reid Spencer
Jim, Attached is the casting fix for gcc/config/rs6000/rs6000.h. As I don't have a Mac here, I can't even compile this. Could you please compile and test it, and submit a new version of the patch back to llvm-commits if there are any necessary adjustments? Thanks, Reid. Index: gcc/config/rs6000/

[llvm-commits] [llvm-gcc] Cast Fix

2006-12-18 Thread Reid Spencer
All, This patch is needed to update llvm-gcc to avoid inferred casts as LLVM no longer supports them. This patch is sufficient for getting llvm-gcc to compile/work for an X86 target. This cast does not include needed changes to gcc/config/rs6000/rs6000.h Those changes will be sent in a subseque

[llvm-commits] better ada support for llvm-gcc

2006-12-18 Thread Chris Lattner
I applied this untested patch, it may improve ADA support, it certainly can't hurt: Index: llvm-convert.cpp === --- llvm-convert.cpp(revision 121371) +++ llvm-convert.cpp(working copy) @@ -511,6 +511,7 @@ case RESULT_DEC

Re: [llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Reid Spencer
On Mon, 2006-12-18 at 08:56 -0800, Chris Lattner wrote: > On Dec 18, 2006, at 12:16 AM, Reid Spencer wrote: > > > > > Convert the last use of two-argument ConstantExpr::getCast into > > another > > form so we can remove that method from ConstantExpr. > > --- > > Diffs of the changes: (+3 -1) >

Re: [llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Chris Lattner
On Dec 18, 2006, at 12:16 AM, Reid Spencer wrote: > > Convert the last use of two-argument ConstantExpr::getCast into > another > form so we can remove that method from ConstantExpr. > --- > Diffs of the changes: (+3 -1) > > ExprTypeConvert.cpp |4 +++- > 1 files changed, 3 insertions(+),

Re: [llvm-commits] CVS: llvm/lib/CodeGen/IntrinsicLowering.cpp

2006-12-18 Thread Chris Lattner
> > Convert the last uses of CastInst::createInferredCast to a normal cast > creation. These changes are still temporary but at least this pushes > knowledge of signedness out closer to where it can be determined > properly > and allows signedness to be removed from VMCore. Ah, ok, I get it now

Re: [llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Jim Laskey
Did I miss a patch for llvm-gcc? Cheers, -- Jim On 18-Dec-06, at 4:19 AM, Reid Spencer wrote: Changes in directory llvm/include/llvm: Constants.h updated: 1.108 -> 1.109 --- Log message: Remove the two-argument (inferred cast) form of ConstantExpr::getCast now that its last uses hav

[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp

2006-12-18 Thread Rafael Espindola
Changes in directory llvm/lib/Target/ARM: ARMRegisterInfo.cpp updated: 1.29 -> 1.30 --- Log message: macros -> Inline functions Lauros's patch --- Diffs of the changes: (+13 -9) ARMRegisterInfo.cpp | 22 +- 1 files changed, 13 insertions(+), 9 deletions(-) Index: ll

[llvm-commits] CVS: llvm/include/llvm/InstrTypes.h

2006-12-18 Thread Reid Spencer
Changes in directory llvm/include/llvm: InstrTypes.h updated: 1.54 -> 1.55 --- Log message: Remove the createInferredCast methods now that their last uses have been removed. All casting is now explicit and not inferred by VMCore. --- Diffs of the changes: (+2 -55) InstrTypes.h | 57 ++---

[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/Transforms: ExprTypeConvert.cpp updated: 1.116 -> 1.117 --- Log message: Convert the last uses of CastInst::createInferredCast to a normal cast creation. These changes are still temporary but at least this pushes knowledge of signedness out closer to where it can

[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/Instrumentation: ProfilingUtils.cpp updated: 1.10 -> 1.11 --- Log message: Convert the last uses of CastInst::createInferredCast to a normal cast creation. These changes are still temporary but at least this pushes knowledge of signedness out closer to

[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Instructions.cpp updated: 1.55 -> 1.56 --- Log message: Remove the createInferredCast methods now that their last uses have been removed. All casting is now explicit and not inferred by VMCore. --- Diffs of the changes: (+0 -14) Instructions.cpp | 14

[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.570 -> 1.571 --- Log message: Convert the last uses of CastInst::createInferredCast to a normal cast creation. These changes are still temporary but at least this pushes knowledge of signedness out closer to w

[llvm-commits] CVS: llvm/lib/CodeGen/IntrinsicLowering.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/CodeGen: IntrinsicLowering.cpp updated: 1.51 -> 1.52 --- Log message: Convert the last uses of CastInst::createInferredCast to a normal cast creation. These changes are still temporary but at least this pushes knowledge of signedness out closer to where it can be

[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.188 -> 1.189 --- Log message: Remove the two-argument (inferred cast) form of ConstantExpr::getCast now that its last uses have been removed. --- Diffs of the changes: (+0 -7) Constants.cpp |7 --- 1 files changed, 7 de

[llvm-commits] CVS: llvm/include/llvm/Constants.h

2006-12-18 Thread Reid Spencer
Changes in directory llvm/include/llvm: Constants.h updated: 1.108 -> 1.109 --- Log message: Remove the two-argument (inferred cast) form of ConstantExpr::getCast now that its last uses have been removed. --- Diffs of the changes: (+0 -2) Constants.h |2 -- 1 files changed, 2 deletions

[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/lib/Transforms: ExprTypeConvert.cpp updated: 1.115 -> 1.116 --- Log message: Convert the last use of two-argument ConstantExpr::getCast into another form so we can remove that method from ConstantExpr. --- Diffs of the changes: (+3 -1) ExprTypeConvert.cpp |4 +

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.24 -> 1.25 --- Log message: Remove a call to Type::isSigned(). --- Diffs of the changes: (+1 -3) CppWriter.cpp |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u