- Oct 11, 2009
-
-
Chris Lattner authored
llvm-svn: 83755
-
Chris Lattner authored
llvm-svn: 83754
-
Chris Lattner authored
the IR, and to implement the FIXME'd optimization. llvm-svn: 83748
-
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
from GVN, this also speeds it up, inserts fewer PHI nodes (see the testcase) and allows it to remove more loads (due to fewer PHI nodes standing in the way). llvm-svn: 83746
-
Chris Lattner authored
llvm-svn: 83745
-
Chris Lattner authored
PHI nodes inserted. llvm-svn: 83744
-
Chris Lattner authored
llvm-svn: 83742
-
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
DemoteRegToStack. This makes it more efficient (because it isn't creating a ton of load/stores that are eventually removed by a later mem2reg), and more slightly more effective (because those load/stores don't get in the way of threading). llvm-svn: 83706
-
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
-
Dale Johannesen authored
and that will make Caller too big to inline, see if it might be better to inline Caller into its callers instead. This situation is described in PR 2973, although I haven't tried the specific case in SPASS. llvm-svn: 83602
-
- Oct 08, 2009
-
-
Dan Gohman authored
to declare that they preserve other passes without needing to pull in additional header file or library dependencies. Convert MachineFunctionPass and CodeGenLICM to make use of this. llvm-svn: 83555
-
Jeffrey Yasskin authored
already on the worklist, and print Visited when an instruction is about to be visited. Net, on one input, this reduced the output size by at least 9x. llvm-svn: 83510
-
- Oct 07, 2009
-
-
Eric Christopher authored
llvm-svn: 83489
-
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
-
-
Ted Kremenek authored
llvm-svn: 83404
-
Chris Lattner authored
out of it, and jump threading, condprop and gvn are now getting most of the benefit. This was approved by Nicholas and Nicolas. llvm-svn: 83390
-
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
-
Dan Gohman authored
llvm-svn: 83310
-
Chris Lattner authored
the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this allows a smart compiler to turn the if sequence into a switch. llvm-svn: 83297
-
Chris Lattner authored
This fixes PR5130. llvm-svn: 83290
-
- 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
-
Evan Cheng authored
llvm-svn: 83274
-
- Oct 01, 2009
-
-
Douglas Gregor authored
llvm-svn: 83194
-
Chris Lattner authored
Ok'd by Owen. llvm-svn: 83193
-
- 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
-
Chris Lattner authored
phi nodes. Make sure to phi translate from the right block. This fixes a llvm-building-llvm failure on GVN-PRE.cpp llvm-svn: 82970
-
- Sep 27, 2009
-
-
Chris Lattner authored
llvm-svn: 82936
-
Chris Lattner authored
The bitcast case is not needed here: instcombine turns icmp(bitcast(x), null) -> icmp(x, null) already. llvm-svn: 82935
-