- Nov 30, 2008
-
-
Eli Friedman authored
functional change. llvm-svn: 60307
-
Eli Friedman authored
Note that the FoldOpIntoPhi call is dead because it's impossible for the first operand of a subtraction to be both a ConstantInt and a PHINode. llvm-svn: 60306
-
Bill Wendling authored
llvm-svn: 60291
-
Bill Wendling authored
takes care of all permutations of this pattern. llvm-svn: 60290
-
Bill Wendling authored
llvm-svn: 60289
-
Bill Wendling authored
APInt calls instead. This fixes PR3144. llvm-svn: 60288
-
Eli Friedman authored
only show up in code from front-ends besides llvm-gcc, like clang. llvm-svn: 60287
-
Bill Wendling authored
llvm-svn: 60279
-
Bill Wendling authored
"For signed integers, the determination of overflow of x*y is not so simple. If x and y have the same sign, then overflow occurs iff xy > 2**31 - 1. If they have opposite signs, then overflow occurs iff xy < -2**31." In this case, x == -1. llvm-svn: 60278
-
Bill Wendling authored
overflowed on negation. This commit checks to make sure that neithe C nor X overflows. This requires that the RHS of X (a subtract instruction) be a constant integer. llvm-svn: 60275
-
Chris Lattner authored
If we see that a load depends on the allocation of its memory with no intervening stores, we now return a 'None' depedency instead of "Normal". This tweaks GVN to do its optimization with the new result. llvm-svn: 60267
-
Chris Lattner authored
Fix a subtle iterator invalidation bug I introduced in the last commit. llvm-svn: 60258
-
- Nov 29, 2008
-
-
Chris Lattner authored
a smallvector instead of a DenseMap. This speeds up GVN by 5% on 403.gcc. llvm-svn: 60255
-
Chris Lattner authored
formulation that is faster and doesn't require nonLazyHelper. Much less code. llvm-svn: 60253
-
Chris Lattner authored
llvm-svn: 60251
-
Chris Lattner authored
former does caching, the later doesn't. This dramatically simplifies the logic in getDependency and getDependencyFrom. llvm-svn: 60234
-
Bill Wendling authored
llvm-svn: 60233
-
Chris Lattner authored
query. This makes it crystal clear what cases can escape from MemDep that the clients have to handle. This also gives the clients a nice simplified interface to it that is easy to poke at. This patch also makes DepResultTy and MemoryDependenceAnalysis::DepType private, yay. llvm-svn: 60231
-
Chris Lattner authored
of a pointer/int pair instead of a manually bitmangled pointer. This forces clients to think a little more about checking the appropriate pieces and will be useful for internal implementation improvements later. I'm not particularly happy with this. After going through this I don't think that the clients of memdep should be exposed to the internal type at all. I'll fix this in a subsequent commit. This has no functionality change. llvm-svn: 60230
-
- Nov 28, 2008
-
-
Chris Lattner authored
llvm-svn: 60221
-
Chris Lattner authored
llvm-svn: 60213
-
Chris Lattner authored
predecessor is itself. This doesn't make sense, and this is a dead infinite loop anyway. llvm-svn: 60210
-
Chris Lattner authored
formulation that doesn't require set lookups or scanning a set. llvm-svn: 60203
-
Chris Lattner authored
nothing to do with dead instruction elimination. No tests in dejagnu depend on this, so I don't know what it was needed for. llvm-svn: 60202
-
Chris Lattner authored
elimination to use more modern infrastructure. Also do a bunch of small cleanups. llvm-svn: 60201
-
Chris Lattner authored
RecursivelyDeleteTriviallyDeadInstructions. llvm-svn: 60196
-
Chris Lattner authored
making it use RecursivelyDeleteTriviallyDeadInstructions to do the heavy lifting. llvm-svn: 60195
-
Chris Lattner authored
PHIs dead if they are single-value. llvm-svn: 60194
-
Chris Lattner authored
return a list of deleted instructions. llvm-svn: 60193
-
Chris Lattner authored
llvm-svn: 60192
-
- Nov 27, 2008
-
-
Chris Lattner authored
wrappers around the interesting code and use an obscure iterator abstraction that dates back many many years. Move EraseDeadInstructions to Transforms/Utils and name it RecursivelyDeleteTriviallyDeadInstructions. llvm-svn: 60191
-
Chris Lattner authored
llvm-svn: 60190
-
Chris Lattner authored
llvm-svn: 60189
-
Nick Lewycky authored
llvm-svn: 60187
-
Nick Lewycky authored
by 1, as well as multiply by -1. llvm-svn: 60182
-
Chris Lattner authored
it ends up being the entry block. llvm-svn: 60180
-
Chris Lattner authored
move the other block back up into the entry position! llvm-svn: 60179
-
Chris Lattner authored
FindAvailableLoadedValue llvm-svn: 60169
-
Chris Lattner authored
if it has it. llvm-svn: 60167
-
Chris Lattner authored
llvm-svn: 60166
-