- Oct 11, 2009
-
-
Chris Lattner authored
inserted only once, just use vector. Don't compute ExitBlocks unless we need it, change std::sort to array_pod_sort. llvm-svn: 83747
-
Chris Lattner authored
llvm-svn: 83745
-
Chris Lattner authored
PHI nodes inserted. llvm-svn: 83744
-
Chris Lattner authored
not just at the end. Add a big comment explaining when this could be useful (which never happens for jump threading). llvm-svn: 83741
-
Chris Lattner authored
what it does. llvm-svn: 83740
-
- Oct 10, 2009
-
-
Chris Lattner authored
llvm-svn: 83707
-
Chris Lattner authored
works on unstructured CFGs. This implements PR217, our oldest open PR. llvm-svn: 83705
-
Chris Lattner authored
llvm-svn: 83701
-
- Oct 09, 2009
-
-
Dale Johannesen authored
constants used in inlining heuristics (especially those used in more than one file). No functional change. llvm-svn: 83675
-
- Oct 07, 2009
-
-
Eric Christopher authored
not intrinsics. llvm-svn: 83441
-
Eric Christopher authored
for inlining. When MallocInst goes away this code will be subsumed as part of calls and work just fine... llvm-svn: 83434
-
- Oct 06, 2009
-
-
Duncan Sands authored
where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379
-
- Oct 05, 2009
-
-
Dan Gohman authored
ConstantFoldLoadThroughGEPConstantExpr. llvm-svn: 83311
-
- Oct 04, 2009
-
-
Owen Anderson authored
Do away with the strange use of BitVectors in SSI, and just use normal sets. This makes the code much more C++/LLVM-ish. llvm-svn: 83286
-
Owen Anderson authored
llvm-svn: 83283
-
Owen Anderson authored
Similarly, it can be marked setPreservesAll, since it does no work in its runOnFunction. llvm-svn: 83282
-
- Sep 30, 2009
-
-
Dan Gohman authored
while calling changeImmediateDominator, which removes elements from the vector. This fixes PR5097. llvm-svn: 83166
-
- Sep 28, 2009
-
-
Dan Gohman authored
llvm-svn: 82991
-
Dan Gohman authored
llvm-svn: 82990
-
- Sep 27, 2009
-
-
Chris Lattner authored
llvm-svn: 82931
-
Nick Lewycky authored
update all the callers. llvm-svn: 82889
-
- Sep 24, 2009
-
-
Dale Johannesen authored
computation, and some cosmetics. llvm-svn: 82660
-
- Sep 22, 2009
-
-
Chris Lattner authored
llvm-svn: 82488
-
- Sep 19, 2009
-
-
Victor Hernandez authored
Reviewed by Dan Gohman. llvm-svn: 82300
-
- Sep 18, 2009
-
-
Victor Hernandez authored
Update malloc call creation code (AllocType is now the element type of the malloc, not the resulting type). In getMallocArraySize(), fix bug in the case that array size is the product of 2 constants. Extend isArrayMalloc() and getMallocArraySize() to handle case where malloc is used as char array. Ensure that ArraySize in LowerAllocations::runOnBasicBlock() is correct type. Extend Instruction::isSafeToSpeculativelyExecute() to handle malloc calls. Add verification for malloc calls. Reviewed by Dan Gohman. llvm-svn: 82257
-
- Sep 16, 2009
-
-
Andreas Neustifter authored
llvm-svn: 82034
-
- Sep 10, 2009
-
-
Nick Lewycky authored
used by a terminator in another. llvm-svn: 81437
-
Evan Cheng authored
llvm-svn: 81426
-
- Sep 09, 2009
-
-
Dan Gohman authored
loop exit edge -- new PHIs may be needed not only for the additional splits that are made to preserve LoopSimplify form, but also for the original split. Factor out the code that inserts new PHIs so that it can be used for both. Remove LoopRotation.cpp's code for manually updating LCSSA form, as it is now redundant. This fixes PR4934. llvm-svn: 81363
-
Andreas Neustifter authored
llvm-svn: 81360
-
- Sep 08, 2009
-
-
Dan Gohman authored
that get created during loop unswitching, and fix SplitBlockPredecessors' LCSSA updating code to create new PHIs instead of trying to just move existing ones. Also, optimize Loop::verifyLoop, since it gets called a lot. Use searches on a sorted list of blocks instead of calling the "contains" function, as is done in other places in the Loop class, since "contains" does a linear search. Also, don't call verifyLoop from LoopSimplify or LCSSA, as the PassManager is already calling verifyLoop as part of LoopInfo's verifyAnalysis. llvm-svn: 81221
-
- Sep 07, 2009
-
-
Eric Christopher authored
llvm-svn: 81138
-
- Sep 06, 2009
-
-
Evan Cheng authored
llvm-svn: 81101
-
- Sep 03, 2009
-
-
Dan Gohman authored
that these passes are properly preserved. Fix several transformation passes that claimed to preserve LoopSimplify form but weren't. llvm-svn: 80926
-
Dan Gohman authored
instead of a bool argument, and to do the dominator check itself. This makes it eaiser to use when DominatorTree information is available. llvm-svn: 80920
-
Gabor Greif authored
llvm-svn: 80871
-
Gabor Greif authored
re-commit r66920 (which has been backed out in r66953) I may have more luck this time. I'll back out if needed... llvm-svn: 80858
-
- Sep 01, 2009
-
-
Chris Lattner authored
callgraph. This is now dead because RAUW does the job. llvm-svn: 80703
-
Chris Lattner authored
for sanity. This didn't turn up any bugs. Change CallGraphNode to maintain its "callsite" information in the call edges list as a WeakVH instead of as an instruction*. This fixes a broad class of dangling pointer bugs, and makes CallGraph have a number of useful invariants again. This fixes the class of problem indicated by PR4029 and PR3601. llvm-svn: 80663
-
- Aug 29, 2009
-
-
Devang Patel authored
Use MDNodes to encode debug info in llvm IR. llvm-svn: 80406
-