Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reorder the contents of various getAnalysisUsage functions, eliminating | Dan Gohman | 2010-07-16 | 2 | -14/+17 |
| | | | | | | a redundant loopsimplify run from the default -O2 sequence. llvm-svn: 108539 | ||||
* | eliminate CallInst::ArgOffset | Gabor Greif | 2010-07-16 | 1 | -5/+5 |
| | | | | llvm-svn: 108522 | ||||
* | Remove unneeded check, and correct style. | Owen Anderson | 2010-07-15 | 1 | -3/+2 |
| | | | | llvm-svn: 108427 | ||||
* | make various clients of ReplaceAndSimplifyAllUses tolerate | Chris Lattner | 2010-07-15 | 1 | -2/+3 |
| | | | | | | | | it *changing* the things it replaces, not just causing them to drop to null. There is no functionality change yet, but this is required for a subsequent patch. llvm-svn: 108414 | ||||
* | Extend SimplifyCFG's common-destination folding heuristic to allow a single | Owen Anderson | 2010-07-14 | 1 | -5/+67 |
| | | | | | | | | | | "bonus" instruction to be speculatively executed. Add a heuristic to ensure we're not tripping up out-of-order execution by checking that this bonus instruction only uses values that were already guaranteed to be available. This allows us to eliminate the short circuit in (x&1)&&(x&2). llvm-svn: 108351 | ||||
* | cache dereferenced iterators | Gabor Greif | 2010-07-12 | 1 | -4/+6 |
| | | | | llvm-svn: 108133 | ||||
* | cache dereferenced iterators | Gabor Greif | 2010-07-12 | 1 | -3/+5 |
| | | | | llvm-svn: 108132 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -3/+5 |
| | | | | llvm-svn: 107984 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -2/+4 |
| | | | | llvm-svn: 107983 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -2/+3 |
| | | | | llvm-svn: 107981 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -4/+6 |
| | | | | llvm-svn: 107975 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -2/+3 |
| | | | | llvm-svn: 107974 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -3/+4 |
| | | | | llvm-svn: 107968 | ||||
* | cache result of operator* | Gabor Greif | 2010-07-09 | 1 | -3/+5 |
| | | | | llvm-svn: 107966 | ||||
* | cache operator*'s result (in multiple functions) | Gabor Greif | 2010-07-09 | 1 | -15/+22 |
| | | | | llvm-svn: 107965 | ||||
* | MDString is already checked earlier. | Devang Patel | 2010-07-02 | 1 | -1/+1 |
| | | | | llvm-svn: 107516 | ||||
* | lowerinvoke needs to handle aggregate function args like sjlj eh does. | Jim Grosbach | 2010-06-30 | 1 | -4/+4 |
| | | | | llvm-svn: 107335 | ||||
* | use getArgOperand instead of getOperand | Gabor Greif | 2010-06-30 | 1 | -8/+8 |
| | | | | llvm-svn: 107269 | ||||
* | use CallInst::ArgOffset | Gabor Greif | 2010-06-28 | 1 | -1/+1 |
| | | | | llvm-svn: 107003 | ||||
* | use ArgOperand API and CallInst::ArgOffset | Gabor Greif | 2010-06-28 | 1 | -17/+17 |
| | | | | llvm-svn: 107002 | ||||
* | The hasMemory argument is irrelevant to how the argument | Dale Johannesen | 2010-06-25 | 1 | -2/+1 |
| | | | | | | | | | for an "i" constraint should get lowered; PR 6309. While this argument was passed around a lot, this is the only place it was used, so it goes away from a lot of other places. llvm-svn: 106893 | ||||
* | use ArgOperand API (one more hunk I could split) | Gabor Greif | 2010-06-25 | 1 | -2/+2 |
| | | | | llvm-svn: 106825 | ||||
* | use ArgOperand API (some hunks I could split) | Gabor Greif | 2010-06-25 | 1 | -1/+1 |
| | | | | llvm-svn: 106824 | ||||
* | use callsite to obtain all arguments | Gabor Greif | 2010-06-24 | 1 | -1/+2 |
| | | | | llvm-svn: 106728 | ||||
* | Use ValueMap instead of DenseMap. | Devang Patel | 2010-06-24 | 4 | -15/+14 |
| | | | | | | The ValueMapper used by various cloning utility maps MDNodes also. llvm-svn: 106706 | ||||
* | Use available typedef for " DenseMap<const Value*, Value*>". | Devang Patel | 2010-06-24 | 2 | -8/+8 |
| | | | | llvm-svn: 106699 | ||||
* | Cosmetic change. | Devang Patel | 2010-06-23 | 6 | -102/+102 |
| | | | | | | Do not use "ValueMap" as a name for a local variable or an argument. llvm-svn: 106698 | ||||
* | Revert 106592 for now. It causes clang-selfhost build failure. | Devang Patel | 2010-06-22 | 1 | -34/+13 |
| | | | | llvm-svn: 106598 | ||||
* | If a metadata operand is seeded in value map and the metadata should also be ↵ | Devang Patel | 2010-06-22 | 1 | -13/+34 |
| | | | | | | | | | | | seeded in value map. This is not limited to function local metadata. Failure to seed metdata in such cases causes troubles when in a cloned module, metadata from a new module refers to values in old module. Usually this results in mysterious bugpoint crashes. For example, Checking to see if we can delete global inits: Unknown constant! UNREACHABLE executed at /d/g/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:904! llvm-svn: 106592 | ||||
* | While cloning a module, clone metadata attached with instructions. | Devang Patel | 2010-06-22 | 1 | -1/+16 |
| | | | | llvm-svn: 106591 | ||||
* | Clone named metadata while cloning a module. | Devang Patel | 2010-06-22 | 1 | -0/+11 |
| | | | | | | Reapply Bob's patch. llvm-svn: 106560 | ||||
* | Use pre-increment instead of post-increment when the result is not used. | Dan Gohman | 2010-06-22 | 1 | -3/+3 |
| | | | | llvm-svn: 106542 | ||||
* | Revert 106528. It is causing self host failures. | Devang Patel | 2010-06-22 | 1 | -5/+7 |
| | | | | llvm-svn: 106529 | ||||
* | Do not rely on DenseMap slot which can be easily invalidated when DenseMap ↵ | Devang Patel | 2010-06-22 | 1 | -7/+5 |
| | | | | | | grows. llvm-svn: 106528 | ||||
* | Revert my change to clone named metadata. Buildbots are complaining. | Bob Wilson | 2010-06-22 | 1 | -11/+0 |
| | | | | | | | --- Reverse-merging r106508 into '.': U lib/Transforms/Utils/CloneModule.cpp llvm-svn: 106521 | ||||
* | Include named metadata when cloning a module. | Bob Wilson | 2010-06-22 | 1 | -0/+11 |
| | | | | llvm-svn: 106508 | ||||
* | Use A.append(...) instead of A.insert(A.end(), ...) when A is a | Dan Gohman | 2010-06-21 | 1 | -3/+2 |
| | | | | | | SmallVector, and other SmallVector simplifications. llvm-svn: 106452 | ||||
* | remove trailing whitespace | Jim Grosbach | 2010-06-16 | 1 | -11/+11 |
| | | | | llvm-svn: 106164 | ||||
* | simplify-libcalls: fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0 | Benjamin Kramer | 2010-06-15 | 1 | -0/+25 |
| | | | | llvm-svn: 106047 | ||||
* | Copy location info for current function argument from dbg.declare if ↵ | Devang Patel | 2010-06-04 | 1 | -4/+2 |
| | | | | | | respective store instruction does not have any location info. llvm-svn: 105490 | ||||
* | Remove unused code | Jim Grosbach | 2010-06-01 | 1 | -64/+0 |
| | | | | llvm-svn: 105293 | ||||
* | fix think-o | Jim Grosbach | 2010-06-01 | 1 | -6/+2 |
| | | | | llvm-svn: 105291 | ||||
* | Simplify things a bit more. Fix prototype to use SmallVectorImpl and | Jim Grosbach | 2010-06-01 | 1 | -17/+17 |
| | | | | | | change a few SmallVectors to vanilla C arrays. llvm-svn: 105289 | ||||
* | mirror of r105280 changes for LowerInvoke, which uses the same basic logic here | Jim Grosbach | 2010-06-01 | 1 | -10/+27 |
| | | | | llvm-svn: 105281 | ||||
* | Use SmallVector instead of std::vector. | Jim Grosbach | 2010-06-01 | 1 | -12/+13 |
| | | | | llvm-svn: 105279 | ||||
* | Fix PR7272: when inlining through a callsite with byval arguments, | Duncan Sands | 2010-05-31 | 1 | -0/+4 |
| | | | | | | | the newly created allocas may be used by inlined calls, so these need to have their tail call flags cleared. Fixes PR7272. llvm-svn: 105255 | ||||
* | The memcpy intrinsic only takes i8* for %src and %dst, so cast them to that | Nick Lewycky | 2010-05-31 | 1 | -2/+2 |
| | | | | | | first. Fixes PR7265. llvm-svn: 105206 | ||||
* | Move FindAvailableLoadedValue isSafeToLoadUnconditionally out of | Dan Gohman | 2010-05-28 | 2 | -223/+0 |
| | | | | | | | lib/Transforms/Utils and into lib/Analysis so that Analysis passes can use them. llvm-svn: 104949 | ||||
* | Fix typo. | Devang Patel | 2010-05-28 | 1 | -1/+1 |
| | | | | llvm-svn: 104914 | ||||
* | Fix typo. | Devang Patel | 2010-05-28 | 1 | -1/+1 |
| | | | | llvm-svn: 104913 |