[llvm-commits] [llvm] r44977 - /llvm/trunk/test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-12 Thread Zhou Sheng
Author: sheng Date: Wed Dec 12 20:03:57 2007 New Revision: 44977 URL: http://llvm.org/viewvc/llvm-project?rev=44977&view=rev Log: Remove this testcase as it will always fail on platform like Darwin. Removed: llvm/trunk/test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll Removed: llvm/trunk/te

[llvm-commits] [llvm] r44914 - /llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp

2007-12-11 Thread Zhou Sheng
Author: sheng Date: Wed Dec 12 00:16:47 2007 New Revision: 44914 URL: http://llvm.org/viewvc/llvm-project?rev=44914&view=rev Log: Add a guard to cxxabi header as other platform may not support it. Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Modified: llvm/trunk

Re: [llvm-commits] [llvm] r44910 - in /llvm/trunk: lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-11 Thread Zhou Sheng
Hi Chris, 2007/12/12, Chris Lattner <[EMAIL PROTECTED]>: > > > URL: http://llvm.org/viewvc/llvm-project?rev=44910&view=rev > > Log: > > Fixed PR1629. > > Make lli interpreter correctly call external functions sin()/cos(), > > __cxa_guard_acquire() and __cxa_guard_release(). > > #include > > +#inc

[llvm-commits] [llvm] r44910 - in /llvm/trunk: lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp test/ExecutionEngine/2007-12-11-APIntExFuncCall.ll

2007-12-11 Thread Zhou Sheng
Author: sheng Date: Tue Dec 11 22:55:43 2007 New Revision: 44910 URL: http://llvm.org/viewvc/llvm-project?rev=44910&view=rev Log: Fixed PR1629. Make lli interpreter correctly call external functions sin()/cos(), __cxa_guard_acquire() and __cxa_guard_release(). Added: llvm/trunk/test/Execution

Re: [llvm-commits] [llvm] r44353 - Re: [llvm] r44353 /llvm/trunk/test/CFrontend/2005-02-20-AggregateSAVEEXPR.c

2007-12-02 Thread Zhou Sheng
> > Message: 3 > Date: Thu, 29 Nov 2007 13:02:39 -0800 > From: Eric Christopher <[EMAIL PROTECTED]> > Subject: Re: [llvm-commits] [llvm] r44353 - > /llvm/trunk/test/CFrontend/2005-02-20-AggregateSAVEEXPR.c > To: CVS Commit Messages for LLVM repository > Message-ID: <[EMAIL PROTECTED]

[llvm-commits] [llvm] r44354 - /llvm/trunk/test/CFrontend/extern-weak.c

2007-11-26 Thread Zhou Sheng
Author: sheng Date: Tue Nov 27 00:23:59 2007 New Revision: 44354 URL: http://llvm.org/viewvc/llvm-project?rev=44354&view=rev Log: Make this pass for CYGWIN. Modified: llvm/trunk/test/CFrontend/extern-weak.c Modified: llvm/trunk/test/CFrontend/extern-weak.c URL: http://llvm.org/viewvc/llvm-p

[llvm-commits] [llvm] r44353 - /llvm/trunk/test/CFrontend/2005-02-20-AggregateSAVEEXPR.c

2007-11-26 Thread Zhou Sheng
Author: sheng Date: Tue Nov 27 00:17:01 2007 New Revision: 44353 URL: http://llvm.org/viewvc/llvm-project?rev=44353&view=rev Log: Make this testcase compatible with CYGWIN. Modified: llvm/trunk/test/CFrontend/2005-02-20-AggregateSAVEEXPR.c Modified: llvm/trunk/test/CFrontend/2005-02-20-Aggre

Re: [llvm-commits] [llvm-gcc-4.0]Patch to make llvm-gcc emit llvm.pow/sin/cos.* [for review]

2007-11-23 Thread Zhou Sheng
Hi Ciao, Another benefit I can imagine is that using llvm.pow.* will make code more effective than using @pow. As llvm began to support apfloat, and as the llvm LangRef says "You can use llvm.pow on any floating point or vector of floating point type. Not all targets support all types however", we

[llvm-commits] [llvm-gcc-4.0]Patch to make llvm-gcc emit llvm.pow/sin/cos.* [for review]

2007-11-22 Thread Zhou Sheng
Hi, Here is the patch to make llvm-gcc/llvm-g++ emit llvm.pow.* when errno disabled. Thanks for revewing. Sheng. Index: gcc/llvm-convert.cpp === --- gcc/llvm-convert.cpp (revision 44263) +++ gcc/llvm-convert.cpp (working copy) @@ -4

[llvm-commits] [llvm-gcc-4.0] llvm-gcc patch for PR1582 (review only)

2007-11-16 Thread Zhou Sheng
Hi, Sorry for reply late. Attached is the modified patch. It's now just for NoAlias attribute and more safe for just eliminating bitcast that losing attribute case. Thanks for reviewing in advance. Sheng. 2007/11/9, Duncan Sands <[EMAIL PROTECTED]>: > > Hi, > > > This patch is for PR1582. As re

[llvm-commits] [llvm-gcc] llvm-gcc patch for PR1582 (review only)

2007-11-08 Thread Zhou Sheng
Hi All, This patch is for PR1582. As recent discuss on that pr, the C++ FE doesn't track the restrict qualifier in the function declaration at all. When llvm-gcc handling CALL_EXPR and emiting callInst instruction, it can't get the "NoAlias" attribute, and hence insert a BitCast in CallInst. This

[llvm-commits] [test-suite] r40055 - in /test-suite/trunk/SingleSource/UnitTests/Integer: bigint.reference_output part_select2.reference_output test4.reference_output

2007-07-19 Thread Zhou Sheng
Author: sheng Date: Thu Jul 19 08:09:10 2007 New Revision: 40055 URL: http://llvm.org/viewvc/llvm-project?rev=40055&view=rev Log: Correct these reference_outputs. Modified: test-suite/trunk/SingleSource/UnitTests/Integer/bigint.reference_output test-suite/trunk/SingleSource/UnitTests/Int

[llvm-commits] [llvm] r37936 - /llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp

2007-07-05 Thread Zhou Sheng
Author: sheng Date: Fri Jul 6 01:01:16 2007 New Revision: 37936 URL: http://llvm.org/viewvc/llvm-project?rev=37936&view=rev Log: Correct a typo. Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp URL: http

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

2007-07-03 Thread Zhou Sheng
Hi Chris, > The condition "IterationCount->getType() != LargestType" doesn't > mean the IterationCount->getType's bitwidth < LargestType's > so, sometimes, (like in this testcase), it need a trunc not ext. > This patch is to fix it. Ah, I see. Thank you for checking in the testcase. The re

[llvm-commits] [llvm] r37838 - /llvm/trunk/test/Transforms/IndVarsSimplify/iterationCount_zext_or_trunc.ll

2007-07-02 Thread Zhou Sheng
Author: sheng Date: Mon Jul 2 03:02:14 2007 New Revision: 37838 URL: http://llvm.org/viewvc/llvm-project?rev=37838&view=rev Log: Test case for recent patch for IndVarSimplify.cpp Added: llvm/trunk/test/Transforms/IndVarsSimplify/iterationCount_zext_or_trunc.ll Added: llvm/trunk/test/Transf

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

2007-06-27 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: IndVarSimplify.cpp updated: 1.123 -> 1.124 --- Log message: Fix a bug. --- Diffs of the changes: (+4 -1) IndVarSimplify.cpp |5 - 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

[llvm-commits] [llvm-gcc] llvm-gcc patch for PR1373 (review only)

2007-06-25 Thread Zhou Sheng
Hi All, Here is the llvm-gcc patch for PR1373. It makes llvm-gcc to emit noalias parameter attribute as well as noalias intrinsic. Note this patch is just for review. Please give me some suggestion to improve it. Thanks. Sheng. Index: gcc/llvm-convert.cpp ===

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

2007-06-06 Thread Zhou Sheng
Changes in directory llvm/lib/VMCore: Verifier.cpp updated: 1.212 -> 1.213 --- Log message: Add assert to check if the attributes ZExt/SExt, NoAlias are apply to the correct type of parameters. --- Diffs of the changes: (+15 -0) Verifier.cpp | 15 +++ 1 files changed, 15 inse

[llvm-commits] CVS: llvm/lib/AsmParser/Lexer.l llvmAsmParser.y

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/lib/AsmParser: Lexer.l updated: 1.112 -> 1.113 llvmAsmParser.y updated: 1.358 -> 1.359 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramatt

[llvm-commits] CVS: llvm/test/Feature/paramattrs.ll

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/test/Feature: paramattrs.ll updated: 1.6 -> 1.7 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. --- Diffs of the

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

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/lib/VMCore: Function.cpp updated: 1.127 -> 1.128 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. --- Diffs of the

[llvm-commits] CVS: llvm/docs/LangRef.html

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/docs: LangRef.html updated: 1.249 -> 1.250 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. --- Diffs of the chang

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

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.48 -> 1.49 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. --- Diffs of

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

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/include/llvm: ParameterAttributes.h updated: 1.12 -> 1.13 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. --- Dif

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

2007-06-01 Thread Zhou Sheng
Changes in directory llvm/lib/CodeGen: IntrinsicLowering.cpp updated: 1.85 -> 1.86 --- Log message: Make LowerCTPOP() support arbitrary bitwidth integer type. --- Diffs of the changes: (+22 -9) IntrinsicLowering.cpp | 31 ++- 1 files changed, 22 insertions(+),

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/reduce_xor.c reduce_xor.reference_output

2007-05-31 Thread Zhou Sheng
Changes in directory llvm-test/SingleSource/UnitTests/Integer: reduce_xor.c added (r1.1) reduce_xor.reference_output added (r1.1) --- Log message: Add a new test case for reduce_xor --- Diffs of the changes: (+121 -0) reduce_xor.c| 41 ++ reduce_xor.re

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/integer_all_onesp.c integer_all_onesp.reference_output

2007-05-27 Thread Zhou Sheng
Changes in directory llvm-test/SingleSource/UnitTests/Integer: integer_all_onesp.c added (r1.1) integer_all_onesp.reference_output added (r1.1) --- Log message: Add a new test case. --- Diffs of the changes: (+10 -0) integer_all_onesp.c|9 + integer_all_onesp.re

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/multiple_assign.c multiple_assign.reference_output

2007-05-27 Thread Zhou Sheng
Changes in directory llvm-test/SingleSource/UnitTests/Integer: multiple_assign.c updated: 1.2 -> 1.3 multiple_assign.reference_output updated: 1.1 -> 1.2 --- Log message: Enhance this test case. --- Diffs of the changes: (+60 -3) multiple_assign.c| 47

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

2007-05-25 Thread Zhou Sheng
Changes in directory llvm/lib/CodeGen: IntrinsicLowering.cpp updated: 1.84 -> 1.85 --- Log message: Correct the logic in LowerPartSet which cleared the bits from 0 to low-1. --- Diffs of the changes: (+7 -5) IntrinsicLowering.cpp | 12 +++- 1 files changed, 7 insertions(+), 5 del

[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp

2007-05-24 Thread Zhou Sheng
Changes in directory llvm/lib/ExecutionEngine: ExecutionEngine.cpp updated: 1.114 -> 1.115 --- Log message: Compute the correct word number. --- Diffs of the changes: (+1 -1) ExecutionEngine.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/ExecutionEngine/Exe

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/bits.h

2007-05-17 Thread Zhou Sheng
Changes in directory llvm-test/SingleSource/UnitTests/Integer: bits.h updated: 1.9 -> 1.10 --- Log message: Add some new int types. --- Diffs of the changes: (+10 -1) bits.h | 11 ++- 1 files changed, 10 insertions(+), 1 deletion(-) Index: llvm-test/SingleSource/UnitTests/Integ

[llvm-commits] CVS: llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll trip-count2.ll

2007-04-26 Thread Zhou Sheng
Changes in directory llvm/test/Analysis/ScalarEvolution: SolveQuadraticEquation.ll added (r1.1) trip-count2.ll added (r1.1) --- Log message: Add two test cases to cover apintification change. --- Diffs of the changes: (+67 -0) SolveQuadraticEquation.ll | 32 ++

[llvm-commits] CVS: llvm/lib/Support/ConstantRange.cpp

2007-04-26 Thread Zhou Sheng
Changes in directory llvm/lib/Support: ConstantRange.cpp updated: 1.44 -> 1.45 --- Log message: Using APInt more efficiently. --- Diffs of the changes: (+3 -5) ConstantRange.cpp |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) Index: llvm/lib/Support/ConstantRange.cpp di

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

2007-04-26 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: PredicateSimplifier.cpp updated: 1.70 -> 1.71 --- Log message: Using APInt more efficiently. --- Diffs of the changes: (+4 -5) PredicateSimplifier.cpp |9 - 1 files changed, 4 insertions(+), 5 deletions(-) Index: llvm/lib/Trans

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

2007-04-18 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.748 -> 1.749 ScalarReplAggregates.cpp updated: 1.84 -> 1.85 --- Log message: Make use of ConstantInt::isZero instead of ConstantInt::isNullValue. --- Diffs of the changes: (+5 -5) InstructionCombining.cpp

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

2007-04-18 Thread Zhou Sheng
Changes in directory llvm/lib/Analysis: BasicAliasAnalysis.cpp updated: 1.107 -> 1.108 --- Log message: Make use of ConstantInt::isZero instead of ConstantInt::isNullValue. --- Diffs of the changes: (+1 -1) BasicAliasAnalysis.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

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

2007-04-18 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: PredicateSimplifier.cpp updated: 1.67 -> 1.68 --- Log message: Make the operations of APInt variables more efficient. --- Diffs of the changes: (+21 -27) PredicateSimplifier.cpp | 48 +--- 1 file

[llvm-commits] CVS: llvm/lib/Support/ConstantRange.cpp

2007-04-12 Thread Zhou Sheng
Changes in directory llvm/lib/Support: ConstantRange.cpp updated: 1.43 -> 1.44 --- Log message: Make the apint construction more effective. --- Diffs of the changes: (+3 -3) ConstantRange.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/Support/Constant

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

2007-04-07 Thread Zhou Sheng
Changes in directory llvm/lib/Analysis: ScalarEvolution.cpp updated: 1.108 -> 1.109 --- Log message: Eliminate unnecessary APInt construction. --- Diffs of the changes: (+7 -8) ScalarEvolution.cpp | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) Index: llvm/lib/An

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

2007-04-07 Thread Zhou Sheng
Changes in directory llvm/lib/Analysis: ScalarEvolution.cpp updated: 1.107 -> 1.108 --- Log message: Make APInt variables do the computation stuffs instead of ConstantExpr::getXX if possible. --- Diffs of the changes: (+11 -14) ScalarEvolution.cpp | 25 +++-- 1 files

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

2007-04-07 Thread Zhou Sheng
Changes in directory llvm/lib/Analysis: ScalarEvolution.cpp updated: 1.106 -> 1.107 --- Log message: Eliminate unnecessary zext/trunc stuffs. --- Diffs of the changes: (+10 -14) ScalarEvolution.cpp | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) Index:

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

2007-04-02 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.722 -> 1.723 --- Log message: 1. Make use of APInt operation instead of using ConstantExpr::getXXX. 2. Use cheaper APInt methods. --- Diffs of the changes: (+19 -26) InstructionCombining.cpp | 45 +++

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

2007-04-02 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.721 -> 1.722 --- Log message: Use uint32_t for bitwidth instead of unsigned. --- Diffs of the changes: (+29 -29) InstructionCombining.cpp | 58 +++ 1 files cha

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

2007-04-01 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.716 -> 1.717 --- Log message: Avoid unnecessary APInt construction. --- Diffs of the changes: (+17 -18) InstructionCombining.cpp | 35 +-- 1 files changed, 17 insertions(+

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

2007-04-01 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.59 -> 1.60 --- Log message: Remove unused methods. --- Diffs of the changes: (+0 -18) APInt.h | 18 -- 1 files changed, 18 deletions(-) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/include/llvm/ADT/APIn

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

2007-03-30 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.713 -> 1.714 --- Log message: Delete dead code. --- Diffs of the changes: (+0 -1) InstructionCombining.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.

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

2007-03-30 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.712 -> 1.713 --- Log message: Use APInt operators to calculate the carry bits, remove this loop. --- Diffs of the changes: (+2 -16) InstructionCombining.cpp | 18 ++ 1 files changed, 2 in

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

2007-03-30 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.711 -> 1.712 --- Log message: Make sure the use of ConstantInt::getZExtValue() for shift amount safe. --- Diffs of the changes: (+20 -18) InstructionCombining.cpp | 38 ---

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

2007-03-30 Thread Zhou Sheng
Changes in directory llvm/include/llvm: Constants.h updated: 1.142 -> 1.143 --- Log message: Make sure this method just return value equal or less than Limit. --- Diffs of the changes: (+2 -1) Constants.h |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/include/llv

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

2007-03-30 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.710 -> 1.711 --- Log message: 1. Make sure the use of ConstantInt::getZExtValue() for getting shift amount is safe. 2. Use new method on ConstantInt instead of (? :) operator. 3. Use new method uge() on Cons

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

2007-03-29 Thread Zhou Sheng
在 2007-03-29四的 23:20 -0700,Reid Spencer写道: > On Thu, 2007-03-29 at 23:08 -0700, Chris Lattner wrote: > > On Mar 28, 2007, at 6:57 PM, Zhou Sheng wrote: > > > > > @@ -540,8 +540,10 @@ > > >if (I->getOpcode() == Instruction::Shl) > > >

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

2007-03-29 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.709 -> 1.710 --- Log message: Use APInt operation instead of ConstantExpr::getXX. --- Diffs of the changes: (+6 -6) InstructionCombining.cpp | 12 ++-- 1 files changed, 6 insertions(+), 6 deletio

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

2007-03-29 Thread Zhou Sheng
Changes in directory llvm/include/llvm: Constants.h updated: 1.141 -> 1.142 --- Log message: Rename and correct the method "greaterOrEqual". --- Diffs of the changes: (+2 -2) Constants.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Constants.h di

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

2007-03-29 Thread Zhou Sheng
在 2007-03-29四的 21:02 -0700,Chris Lattner写道: > > + /// This function will return true iff this constant represents > > a value with > > + /// active bits bigger than 64 bits or a value greater than the > > given uint64_t > > + /// value. > > + /// @returns true iff this constant is greater o

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

2007-03-29 Thread Zhou Sheng
Changes in directory llvm/include/llvm: Constants.h updated: 1.140 -> 1.141 --- Log message: Add two utility methods into ConstantInt. --- Diffs of the changes: (+16 -0) Constants.h | 16 1 files changed, 16 insertions(+) Index: llvm/include/llvm/Constants.h diff -u ll

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

2007-03-29 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.708 -> 1.709 --- Log message: 1. Make more use of APInt::getHighBitsSet/getLowBitsSet. 2. Let APInt variable do the binary operation stuff instead of using ConstantExpr::getXXX. --- Diffs of the changes:

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

2007-03-28 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.707 -> 1.708 --- Log message: Clean up some codes in InstCombiner::SimplifyDemandedBits(). --- Diffs of the changes: (+6 -12) InstructionCombining.cpp | 18 ++ 1 files changed, 6 insertio

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

2007-03-28 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.706 -> 1.707 --- Log message: Clean up codes in InstCombiner::SimplifyDemandedBits(): 1. Line out nested call of APInt::zext/trunc. 2. Make more use of APInt::getHighBitsSet/getLowBitsSet. 3. Use APInt[] operat

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

2007-03-28 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.705 -> 1.706 --- Log message: 1. Make the APInt variable do the binary operation stuff if possible instead of using ConstantExpr::getXX. 2. Use constant reference to APInt if possible instead of expensive

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

2007-03-28 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.704 -> 1.705 --- Log message: Avoid unnecessary APInt construction. --- Diffs of the changes: (+2 -3) InstructionCombining.cpp |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/l

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

2007-03-28 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.703 -> 1.704 --- Log message: 1. Make more use of getLowBitsSet/getHighBitsSet. 2. Use APInt[] instead of "X & SignBit". 3. Clean up some codes. 4. Make the expression like "ShiftAmt = ShiftAmtC->getZExtValue()

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

2007-03-28 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.702 -> 1.703 --- Log message: 1. Make more use of getLowBitsSet/getHighBitsSet. 2. Make the APInt value do the zext/trunc stuff instead of using ConstantExpr::getZExt(). --- Diffs of the changes: (+3 -5)

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

2007-03-27 Thread Zhou Sheng
在 2007-03-27二的 22:17 -0700,Reid Spencer写道: > Sheng, > > A correction to my last email .. > > On Tue, 2007-03-27 at 22:13 -0700, Reid Spencer wrote: > > > // If the sign bit of the input is known set or clear, then we know > > > the > > > // top bits of the result. > > > -APInt InS

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

2007-03-27 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.701 -> 1.702 --- Log message: Use UnknownBIts[BitWidth-1] instead of UnknownBIts & SignBits. --- Diffs of the changes: (+1 -1) InstructionCombining.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletio

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

2007-03-27 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.700 -> 1.701 --- Log message: Remove unused APInt variable. --- Diffs of the changes: (+0 -3) InstructionCombining.cpp |3 --- 1 files changed, 3 deletions(-) Index: llvm/lib/Transforms/Scalar/Instru

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

2007-03-27 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.699 -> 1.700 --- Log message: Clean up codes in ComputeMaskedBits(): 1. Line out nested use of zext/trunc. 2. Make more use of getHighBitsSet/getLowBitsSet. 3. Use APInt[] != 0 instead of "(APInt & SignBit) !=

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

2007-03-24 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.686 -> 1.687 --- Log message: 1. Avoid unnecessary APInt construction if possible. 2. Use isStrictlyPositive() instead of isPositive() in two places where they need APInt value > 0 not only >=0. --- Diffs

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

2007-03-24 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.682 -> 1.683 --- Log message: Make some codes more efficient. --- Diffs of the changes: (+17 -15) InstructionCombining.cpp | 32 +--- 1 files changed, 17 insertions(+), 15 del

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

2007-03-22 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.676 -> 1.677 --- Log message: Make the "KnownZero ^ TypeMask" computation just once. --- Diffs of the changes: (+4 -3) InstructionCombining.cpp |7 --- 1 files changed, 4 insertions(+), 3 deletions

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

2007-03-22 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.675 -> 1.676 --- Log message: Simplify the code. --- Diffs of the changes: (+1 -1) InstructionCombining.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/Scalar/Ins

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-03-20 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.74 -> 1.75 --- Log message: Fix a bug in getAllOnesValue() which broke some test cases for bitwidth > 64. --- Diffs of the changes: (+1 -1) APInt.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Supp

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

2007-03-20 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.669 -> 1.670 --- Log message: Simplify isHighOnes(). --- Diffs of the changes: (+1 -9) InstructionCombining.cpp | 10 +- 1 files changed, 1 insertion(+), 9 deletions(-) Index: llvm/lib/Transfor

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

2007-03-19 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.44 -> 1.45 --- Log message: Correct the name: isStrictPositive --> isStrictlyPositive. --- Diffs of the changes: (+1 -1) APInt.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/APInt.h d

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

2007-03-18 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.42 -> 1.43 --- Log message: Add isStrictPositive() to APInt to determine if this APInt Value > 0. --- Diffs of the changes: (+6 -0) APInt.h |6 ++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/ADT/APInt.h

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

2007-03-14 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.660 -> 1.661 --- Log message: ShiftAmt might equal to zero. Handle this situation. --- Diffs of the changes: (+9 -7) InstructionCombining.cpp | 16 +--- 1 files changed, 9 insertions(+), 7 de

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

2007-03-13 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.659 -> 1.660 --- Log message: Enable KnownZero/One.clear(). --- Diffs of the changes: (+2 -2) InstructionCombining.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Transf

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

2007-03-12 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.657 -> 1.658 --- Log message: For expression like "APInt::getAllOnesValue(ShiftAmt).zextOrCopy(BitWidth)", to handle ShiftAmt == BitWidth situation, use zextOrCopy() instead of zext(). --- Diffs of the chan

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

2007-03-12 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.41 -> 1.42 --- Log message: Add zextOrCopy() into APInt for convenience. --- Diffs of the changes: (+9 -0) APInt.h |9 + 1 files changed, 9 insertions(+) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/include/l

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

2007-03-12 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.656 -> 1.657 --- Log message: In APInt version ComputeMaskedBits(): 1. Ensure VTy, KnownOne and KnownZero have same bitwidth. 2. Make code more efficient. --- Diffs of the changes: (+28 -15) Instructio

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-03-12 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.69 -> 1.70 --- Log message: For APInt::z/sext(width), if width == BitWidth, just return *this. --- Diffs of the changes: (+4 -0) APInt.cpp |4 1 files changed, 4 insertions(+) Index: llvm/lib/Support/APInt.cpp diff -u l

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

2007-03-12 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.653 -> 1.654 --- Log message: Avoid to assert on "(KnownZero & KnownOne) == 0". --- Diffs of the changes: (+1 -1) InstructionCombining.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

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

2007-03-11 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.652 -> 1.653 --- Log message: In function ComputeMaskedBits(): 1. Replace getSignedMinValue() with getSignBit() for better code readability. 2. Replace APIntOps::shl() with operator<<= for convenience. 3.

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

2007-03-10 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.40 -> 1.41 --- Log message: Add getSignBit() and operator<<= into APInt for convenience. --- Diffs of the changes: (+23 -0) APInt.h | 23 +++ 1 files changed, 23 insertions(+) Index: llvm/include/llvm/AD

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

2007-03-08 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.651 -> 1.652 --- Log message: Fix a bug in function ComputeMaskedBits(). --- Diffs of the changes: (+2 -2) InstructionCombining.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: ll

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

2007-03-07 Thread Zhou Sheng
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.650 -> 1.651 --- Log message: Fix a bug in APIntified ComputeMaskedBits(). --- Diffs of the changes: (+4 -8) InstructionCombining.cpp | 12 1 files changed, 4 insertions(+), 8 deletions(-)

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

2007-03-05 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.39 -> 1.40 --- Log message: Correct the calculation in APInt::logBase2(). --- Diffs of the changes: (+1 -1) APInt.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/i

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-14 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.10 -> 1.11 --- Log message: Fix some buges: 1. Make getMinValue() returns the right value. 2. Fix the ByteSwap() crash problem. 3. Make Postfix increment work correctly. 4. Fix some bugs in LogBase2, Hi/LoBits and UDiv. --- Diffs of

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

2007-02-14 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.8 -> 1.9 --- Log message: Fix some buges: 1. Make getMinValue() returns the right value. 2. Fix the ByteSwap() crash problem. 3. Make Postfix increment work correctly. 4. Fix some bugs in LogBase2, Hi/LoBits and UDiv. --- Diffs of

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/APInt/arith.cpp

2007-02-14 Thread Zhou Sheng
Changes in directory llvm-test/SingleSource/UnitTests/Integer/APInt: arith.cpp updated: 1.6 -> 1.7 --- Log message: Fix some errors. --- Diffs of the changes: (+4 -5) arith.cpp |9 - 1 files changed, 4 insertions(+), 5 deletions(-) Index: llvm-test/SingleSource/UnitTests/Inte

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-12 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.7 -> 1.8 --- Log message: 1. Make APInt::shl work correctly and more efficiently. 2. Add functions to support the numberical conversion between APInt and double/float. --- Diffs of the changes: (+78 -10) APInt.cpp | 88 ++

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

2007-02-12 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.6 -> 1.7 --- Log message: 1. Make APInt::shl work correctly and more efficiently. 2. Add functions to support the numberical conversion between APInt and double/float. --- Diffs of the changes: (+24 -0) APInt.h | 24 ++

[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/APInt/arith.cpp bigint.cpp sign.cpp

2007-02-11 Thread Zhou Sheng
Changes in directory llvm-test/SingleSource/UnitTests/Integer/APInt: arith.cpp updated: 1.2 -> 1.3 bigint.cpp updated: 1.2 -> 1.3 sign.cpp updated: 1.2 -> 1.3 --- Log message: Updates these test cases as APInt class modifed. --- Diffs of the changes: (+19 -16) arith.cpp |8 b

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-08 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.6 -> 1.7 --- Log message: Eliminates friend function declaration inside APInt, instead, adds public methods as those global function's internal implementation. --- Diffs of the changes: (+23 -23) APInt.cpp | 46 +

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

2007-02-08 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.5 -> 1.6 --- Log message: Eliminates friend function declaration inside APInt, instead, adds public methods as those global function's internal implementation. --- Diffs of the changes: (+103 -43) APInt.h | 146 +++

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-08 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.5 -> 1.6 --- Log message: Switched this file on accidently. --- Diffs of the changes: (+1 -1) APInt.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Support/APInt.cpp diff -u llvm/lib/Support/APInt.c

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-08 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.4 -> 1.5 --- Log message: As Chris and Reid suggested, remove "isSigned" field from APInt, instead, add some signed/unsigned arithmetic operation functions into APInt.h to handle the signed/unsigned issue. These functions will be defin

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

2007-02-08 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.4 -> 1.5 --- Log message: As Chris and Reid suggested, remove "isSigned" field from APInt, instead, add some signed/unsigned arithmetic operation functions into APInt.h to handle the signed/unsigned issue. These functions will be de

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-06 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.3 -> 1.4 --- Log message: As Chris suggested, fixed some problems. (This is the first part) --- Diffs of the changes: (+157 -147) APInt.cpp | 304 -- 1 files changed, 15

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

2007-02-06 Thread Zhou Sheng
Changes in directory llvm/include/llvm/ADT: APInt.h updated: 1.2 -> 1.3 --- Log message: As Chris suggested, fixed some problems. (This is the first part.) --- Diffs of the changes: (+47 -21) APInt.h | 68 1 files changed,

[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

2007-02-05 Thread Zhou Sheng
Changes in directory llvm/lib/Support: APInt.cpp updated: 1.2 -> 1.3 --- Log message: As Reid suggested, fixed some problems. --- Diffs of the changes: (+143 -150) APInt.cpp | 293 ++ 1 files changed, 143 insertions(+), 150 delet

  1   2   >