[llvm-commits] [128030] Do not use the uninlinable flag for functions the inliner decides not to inline .

2007-06-05 Thread lattner
Revision: 128030 Author: lattner Date: 2007-06-05 23:40:10 -0700 (Tue, 05 Jun 2007) Log Message: --- Do not use the uninlinable flag for functions the inliner decides not to inline. Modified Paths: -- apple-local/branches/llvm/gcc/tree-inline.c Modified: apple-local

[llvm-commits] [128029] Fixing paste error so noinline uses the right vector.

2007-06-05 Thread lattner
Revision: 128029 Author: lattner Date: 2007-06-05 22:58:43 -0700 (Tue, 05 Jun 2007) Log Message: --- Fixing paste error so noinline uses the right vector. Modified Paths: -- apple-local/branches/llvm/gcc/llvm-backend.cpp Modified: apple-local/branches/llvm/gcc/llvm-

[llvm-commits] CVS: llvm/test/CFrontend/2003-07-22-ArrayAccessTypeSafety.c.tr

2007-06-05 Thread Tanya Lattner
Changes in directory llvm/test/CFrontend: 2003-07-22-ArrayAccessTypeSafety.c.tr updated: 1.6 -> 1.7 --- Log message: Ignore llvm.noinline --- Diffs of the changes: (+1 -1) 2003-07-22-ArrayAccessTypeSafety.c.tr |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/test/CFr

[llvm-commits] CVS: llvm/test/C++Frontend/2003-11-09-ConstructorTypeSafety.cpp.tr 2003-11-18-MemberInitializationCasting.cpp.tr 2005-07-21-VirtualBaseAccess.cpp

2007-06-05 Thread Tanya Lattner
Changes in directory llvm/test/C++Frontend: 2003-11-09-ConstructorTypeSafety.cpp.tr updated: 1.3 -> 1.4 2003-11-18-MemberInitializationCasting.cpp.tr updated: 1.3 -> 1.4 2005-07-21-VirtualBaseAccess.cpp updated: 1.2 -> 1.3 --- Log message: Ignore llvm.noinline --- Diffs of the changes: (+3 -

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

2007-06-05 Thread Chris Lattner
> Fix PR1487: http://llvm.org/PR1487 and Transforms/IndVar/ > 2007-06-06-DeleteDanglesPtr.ll Thanks Nicholas, > /// client before it removes an instruction from the program, to > make sure > /// that no dangling references are left around. > void ScalarEvolutionsImpl::deleteInstructionFrom

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

2007-06-05 Thread Nick Lewycky
Changes in directory llvm/lib/Analysis: ScalarEvolution.cpp updated: 1.116 -> 1.117 --- Log message: Fix PR1487: http://llvm.org/PR1487 and Transforms/IndVar/2007-06-06-DeleteDanglesPtr.ll --- Diffs of the changes: (+22 -3) ScalarEvolution.cpp | 25 ++--- 1 files c

[llvm-commits] CVS: llvm/test/Transforms/IndVarsSimplify/2007-06-06-DeleteDanglesPtr.ll

2007-06-05 Thread Nick Lewycky
Changes in directory llvm/test/Transforms/IndVarsSimplify: 2007-06-06-DeleteDanglesPtr.ll added (r1.1) --- Log message: new testcase for PR1487: http://llvm.org/PR1487 --- Diffs of the changes: (+117 -0) 2007-06-06-DeleteDanglesPtr.ll | 117 + 1 fi

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

2007-06-05 Thread Nick Lewycky
Changes in directory llvm/lib/Transforms/Scalar: IndVarSimplify.cpp updated: 1.119 -> 1.120 --- Log message: Inform ScalarEvolutions that we're deleting Values. This is the obviously correct part of the fix for PR1487: http://llvm.org/PR1487 . --- Diffs of the changes: (+2 -0) IndVarSimpl

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.31 -> 1.32 --- Log message: If a unconditional branch is added to branch to the false path during ifcvt, the predicated block cannot be iteratively ifcvted. --- Diffs of the changes: (+33 -6) IfConversion.cpp | 39 +++

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

2007-06-05 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Scalar: GVNPRE.cpp updated: 1.21 -> 1.22 --- Log message: Add simple full redundancy elimination. --- Diffs of the changes: (+38 -12) GVNPRE.cpp | 50 ++ 1 files changed, 38 insertions(+), 12 deletio

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

2007-06-05 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/Scalar: LoopStrengthReduce.cpp updated: 1.138 -> 1.139 --- Log message: Fix PR1495: http://llvm.org/PR1495 and CodeGen/X86/2007-06-05-LSR-Dominator.ll --- Diffs of the changes: (+6 -0) LoopStrengthReduce.cpp |6 ++ 1 files changed, 6 insert

[llvm-commits] CVS: llvm/include/llvm/Analysis/ScalarEvolutionExpander.h

2007-06-05 Thread Chris Lattner
Changes in directory llvm/include/llvm/Analysis: ScalarEvolutionExpander.h updated: 1.15 -> 1.16 --- Log message: add accessor --- Diffs of the changes: (+2 -0) ScalarEvolutionExpander.h |2 ++ 1 files changed, 2 insertions(+) Index: llvm/include/llvm/Analysis/ScalarEvolutionExpander

[llvm-commits] CVS: llvm/test/CodeGen/X86/2007-06-05-LSR-Dominator.ll

2007-06-05 Thread Chris Lattner
Changes in directory llvm/test/CodeGen/X86: 2007-06-05-LSR-Dominator.ll added (r1.1) --- Log message: new testcase for PR1495: http://llvm.org/PR1495 --- Diffs of the changes: (+129 -0) 2007-06-05-LSR-Dominator.ll | 129 1 files changed, 129 i

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.30 -> 1.31 --- Log message: Minor statistics counting bug. --- Diffs of the changes: (+5 -3) IfConversion.cpp |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Index: llvm/lib/CodeGen/IfConversion.cpp diff

[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h

2007-06-05 Thread Devang Patel
Changes in directory llvm/include/llvm/Analysis: Dominators.h updated: 1.91 -> 1.92 --- Log message: Break friendship. --- Diffs of the changes: (+0 -3) Dominators.h |3 --- 1 files changed, 3 deletions(-) Index: llvm/include/llvm/Analysis/Dominators.h diff -u llvm/include/llvm/Analy

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.29 -> 1.30 --- Log message: Fix a couple of typos and be smarter about order of blocks when ifcvt a diamond. --- Diffs of the changes: (+30 -17) IfConversion.cpp | 47 ++- 1 file

[llvm-commits] [128028] Fix a bug in debug info emission that causes an ICE on a really horrible C++

2007-06-05 Thread clattner
Revision: 128028 Author: clattner Date: 2007-06-05 17:56:14 -0700 (Tue, 05 Jun 2007) Log Message: --- Fix a bug in debug info emission that causes an ICE on a really horrible C++ testcase (54KLOC) that Wolfgang Bangerth provided. Modified Paths: -- apple-local/branch

[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h

2007-06-05 Thread Devang Patel
Changes in directory llvm/include/llvm/Transforms: Scalar.h updated: 1.81 -> 1.82 --- Log message: Rename. --- Diffs of the changes: (+1 -1) Scalar.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Transforms/Scalar.h diff -u llvm/include/llvm/Transform

[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h

2007-06-05 Thread Devang Patel
Changes in directory llvm/include/llvm/Analysis: Dominators.h updated: 1.90 -> 1.91 --- Log message: Simplify class hierarchy. --- Diffs of the changes: (+1 -3) Dominators.h |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/include/llvm/Analysis/Dominators.h diff -

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

2007-06-05 Thread Chris Lattner
> // > // LoopUnswitch - This pass is a simple loop unswitching pass. > // > -LoopPass *createLoopUnswitchPass(); > +LoopPass *createLoopUnswitchPass(bool Os = false); Hey Devang, please name this something like "OptimizeForSize" or something, instead of Os :) -Chris

[llvm-commits] [128027] Let loop unswitch pass know whether we are optimizing for size or not.

2007-06-05 Thread dpatel
Revision: 128027 Author: dpatel Date: 2007-06-05 17:23:16 -0700 (Tue, 05 Jun 2007) Log Message: --- Let loop unswitch pass know whether we are optimizing for size or not. Modified Paths: -- apple-local/branches/llvm/gcc/llvm-backend.cpp Modified: apple-local/branche

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

2007-06-05 Thread Devang Patel
Changes in directory llvm/lib/Transforms/Scalar: LoopUnswitch.cpp updated: 1.69 -> 1.70 --- Log message: Avoid non-trivial loop unswitching while optimizing for size. --- Diffs of the changes: (+12 -3) LoopUnswitch.cpp | 15 --- 1 files changed, 12 insertions(+), 3 deletions(

[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h

2007-06-05 Thread Devang Patel
Changes in directory llvm/include/llvm/Transforms: Scalar.h updated: 1.80 -> 1.81 --- Log message: Avoid non-trivial loop unswitching while optimizing for size. --- Diffs of the changes: (+1 -1) Scalar.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/T

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

2007-06-05 Thread Chris Lattner
Changes in directory llvm/lib/VMCore: Function.cpp updated: 1.128 -> 1.129 --- Log message: Fix a user-reported error building with GCC 3.4.4 on Cygwin. --- Diffs of the changes: (+1 -1) Function.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/VMCore/Functio

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.28 -> 1.29 --- Log message: Fix diamond shape ifcvt bugs. --- Diffs of the changes: (+41 -61) IfConversion.cpp | 102 ++- 1 files changed, 41 insertions(+), 61 deletions(-

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

2007-06-05 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Scalar: GVNPRE.cpp updated: 1.20 -> 1.21 --- Log message: Fix a misunderstanding of the algorithm. Really, we should be tracking values and expression separately. We can get around this, however, by only keeping opaque values in TMP_GEN. --- Diffs of

[llvm-commits] [128026] Do bitcase before pushing onto vector and remove GlobalInit.

2007-06-05 Thread lattner
Revision: 128026 Author: lattner Date: 2007-06-05 16:45:35 -0700 (Tue, 05 Jun 2007) Log Message: --- Do bitcase before pushing onto vector and remove GlobalInit. Clear vectors for used and noinline attributes when finished. Modified Paths: -- apple-local/branches/ll

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

2007-06-05 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Scalar: GVNPRE.cpp updated: 1.19 -> 1.20 --- Log message: Don't leak memory. --- Diffs of the changes: (+6 -3) GVNPRE.cpp |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) Index: llvm/lib/Transforms/Scalar/GVNPRE.cpp diff -u llvm/

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.27 -> 1.28 --- Log message: ReplaceUsesOfBlockWith() can modify the predecessors list. --- Diffs of the changes: (+4 -3) IfConversion.cpp |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/lib/Cod

Re: [llvm-commits] noinline attributes patch

2007-06-05 Thread Tanya Lattner
On Jun 4, 2007, at 11:59 PM, Anton Korobeynikov wrote: > Tanya, > >> The attached patch creates a global to track functions that should >> not be inlined (noinline attribute). The llvm inliner will need to be >> modified to make use of it. > Why don't use the function attribute for "noinline"? Th

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.26 -> 1.27 --- Log message: Do not ifcvt if either true / false path is a backedge. Not profitable in almost all cases. --- Diffs of the changes: (+3 -0) IfConversion.cpp |3 +++ 1 files changed, 3 insertions(+) Index

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

2007-06-05 Thread Devang Patel
Changes in directory llvm/lib/Analysis: CFGPrinter.cpp updated: 1.27 -> 1.28 --- Log message: Fix PR 1497: http://llvm.org/PR1497 Use separate pass id for CFGOnlyPrinter. --- Diffs of the changes: (+2 -0) CFGPrinter.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Analys

[llvm-commits] CVS: llvm/test/Other/2007-06-05-PassID.ll

2007-06-05 Thread Devang Patel
Changes in directory llvm/test/Other: 2007-06-05-PassID.ll added (r1.1) --- Log message: New test. --- Diffs of the changes: (+11 -0) 2007-06-05-PassID.ll | 11 +++ 1 files changed, 11 insertions(+) Index: llvm/test/Other/2007-06-05-PassID.ll diff -c /dev/null llvm/test/Other/2

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMAsmPrinter.cpp updated: 1.76 -> 1.77 --- Log message: Print predicate of the second instruction of the two-piece constant MI. --- Diffs of the changes: (+3 -1) ARMAsmPrinter.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) Index

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

2007-06-05 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/Scalar: GVNPRE.cpp updated: 1.18 -> 1.19 --- Log message: Fix a small bug, some 80 cols violations, and add some more debugging output. --- Diffs of the changes: (+8 -2) GVNPRE.cpp | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-)

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

2007-06-05 Thread Dan Gohman
Changes in directory llvm/lib/Transforms/Scalar: LICM.cpp updated: 1.104 -> 1.105 --- Log message: Allow insertelement, extractelement, and shufflevector to be hoisted/sunk by LICM. --- Diffs of the changes: (+3 -1) LICM.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) In

Re: [llvm-commits] noinline attributes patch

2007-06-05 Thread Devang Patel
On Jun 4, 2007, at 11:59 PM, Anton Korobeynikov wrote: > Tanya, > >> The attached patch creates a global to track functions that should >> not be inlined (noinline attribute). The llvm inliner will need to be >> modified to make use of it. > Why don't use the function attribute for "noinline"? Th

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/Target/ARM: ARMAsmPrinter.cpp updated: 1.75 -> 1.76 --- Log message: PIC label asm printing cosmetic changes. --- Diffs of the changes: (+9 -0) ARMAsmPrinter.cpp |9 + 1 files changed, 9 insertions(+) Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp d

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

2007-06-05 Thread Evan Cheng
Changes in directory llvm/lib/CodeGen: IfConversion.cpp updated: 1.25 -> 1.26 --- Log message: I had a senior moment. --- Diffs of the changes: (+4 -3) IfConversion.cpp |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) Index: llvm/lib/CodeGen/IfConversion.cpp diff -u llvm/l

Re: [llvm-commits] noinline attributes patch

2007-06-05 Thread Anton Korobeynikov
Tanya, > The attached patch creates a global to track functions that should > not be inlined (noinline attribute). The llvm inliner will need to be > modified to make use of it. Why don't use the function attribute for "noinline"? This seems to be natural way to handle such things. -- With b