Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | revert 131605 to fix PR9946. | Rafael Espindola | 2011-05-19 | 1 | -36/+31 |
| | | | | llvm-svn: 131620 | ||||
* | Make the demanded bits/elements optimizations preserve debug line information. | Eli Friedman | 2011-05-19 | 2 | -15/+23 |
| | | | | | | I'm not sure this is quite ideal, but I can't really think of any better way to do it. llvm-svn: 131616 | ||||
* | Use IRBuilder. | Devang Patel | 2011-05-19 | 1 | -2/+2 |
| | | | | llvm-svn: 131609 | ||||
* | Use IRBuilder while simplifying unreachable. | Devang Patel | 2011-05-19 | 1 | -7/+8 |
| | | | | llvm-svn: 131607 | ||||
* | Use IRBuilder while simplifying conditional branch. | Devang Patel | 2011-05-18 | 1 | -31/+36 |
| | | | | llvm-svn: 131605 | ||||
* | More instcombine cleanup, towards improving debug line info. | Eli Friedman | 2011-05-18 | 3 | -10/+12 |
| | | | | llvm-svn: 131604 | ||||
* | Use IRBuilder while simplifying branch. | Devang Patel | 2011-05-18 | 1 | -12/+13 |
| | | | | llvm-svn: 131598 | ||||
* | More instcombine simplifications towards better debug locations. | Eli Friedman | 2011-05-18 | 2 | -13/+10 |
| | | | | llvm-svn: 131596 | ||||
* | Use IRBuilder while simplifying return instruction. | Devang Patel | 2011-05-18 | 1 | -11/+13 |
| | | | | llvm-svn: 131580 | ||||
* | When forming an ICmpZero LSRUse, normalize the non-IV operand | Dan Gohman | 2011-05-18 | 1 | -0/+4 |
| | | | | | | | of the comparison, so that the resulting expression is fully normalized. This fixes PR9939. llvm-svn: 131576 | ||||
* | Spread use of IRBuilder even more. | Devang Patel | 2011-05-18 | 1 | -10/+12 |
| | | | | llvm-svn: 131571 | ||||
* | Use IRBuilder while simplifying switch instruction. | Devang Patel | 2011-05-18 | 1 | -15/+18 |
| | | | | llvm-svn: 131566 | ||||
* | Use IRBuilder while simplifying unwind. | Devang Patel | 2011-05-18 | 1 | -7/+9 |
| | | | | llvm-svn: 131561 | ||||
* | More instcombine cleanup aimed towards improving debug line info. | Eli Friedman | 2011-05-18 | 1 | -21/+18 |
| | | | | llvm-svn: 131559 | ||||
* | Use IRBuilder while simplifying terminator. | Devang Patel | 2011-05-18 | 1 | -4/+7 |
| | | | | llvm-svn: 131552 | ||||
* | Use IRBuilder while simplifying unconditional branch. | Devang Patel | 2011-05-18 | 1 | -6/+11 |
| | | | | llvm-svn: 131551 | ||||
* | Use IRBuilder while folding two entry PHINode. | Devang Patel | 2011-05-18 | 1 | -6/+8 |
| | | | | llvm-svn: 131548 | ||||
* | Switch more inst insertion in instcombine to IRBuilder. | Eli Friedman | 2011-05-18 | 1 | -10/+6 |
| | | | | llvm-svn: 131547 | ||||
* | Set up IRBuilder for use during simplification. | Devang Patel | 2011-05-18 | 1 | -0/+3 |
| | | | | llvm-svn: 131545 | ||||
* | Switch more inst insertion in instcombine to IRBuilder. | Eli Friedman | 2011-05-18 | 1 | -13/+6 |
| | | | | llvm-svn: 131544 | ||||
* | fix typo | Matt Beaumont-Gay | 2011-05-18 | 1 | -1/+1 |
| | | | | llvm-svn: 131543 | ||||
* | Switch inst insertion in instcombine transform to IRBuilder. | Eli Friedman | 2011-05-18 | 1 | -6/+2 |
| | | | | llvm-svn: 131542 | ||||
* | Use IRBuiler while constant folding terminator. | Devang Patel | 2011-05-18 | 1 | -7/+10 |
| | | | | llvm-svn: 131541 | ||||
* | Fix inelegant initialization. | Stuart Hastings | 2011-05-18 | 1 | -2/+1 |
| | | | | llvm-svn: 131538 | ||||
* | Revert commit 131534 since it seems to have broken several buildbots. | Duncan Sands | 2011-05-18 | 1 | -2/+2 |
| | | | | | | | | Original log entry: Refactor getActionType and getTypeToTransformTo ; place all of the 'decision' code in one place. llvm-svn: 131536 | ||||
* | Refactor getActionType and getTypeToTransformTo ; place all of the 'decision' | Nadav Rotem | 2011-05-18 | 1 | -2/+2 |
| | | | | | | code in one place. llvm-svn: 131534 | ||||
* | Start trying to make InstCombine preserve more debug info. The idea here is ↵ | Eli Friedman | 2011-05-18 | 2 | -5/+6 |
| | | | | | | | | | | to set the debug location on the IRBuilder, which will be then right location in most cases. This should magically give many transformations debug locations, and fixing places which are missing a debug location will usually just means changing the code creating it to use the IRBuilder. As an example, the change to InstCombineCalls catches a common case where a call to a bitcast of a function is rewritten. Chris, does this approach look reasonable? llvm-svn: 131516 | ||||
* | Use ReplaceInstUsesWith instead of replaceAllUsesWith where appropriate in ↵ | Eli Friedman | 2011-05-18 | 3 | -11/+11 |
| | | | | | | instcombine. llvm-svn: 131512 | ||||
* | Preseve line numbers while simplifying CFG. | Devang Patel | 2011-05-17 | 1 | -6/+16 |
| | | | | llvm-svn: 131508 | ||||
* | Conditionalize the format of the GCOV files by target type. Darwin uses the 4.2 | Bill Wendling | 2011-05-17 | 1 | -10/+19 |
| | | | | | | format. llvm-svn: 131503 | ||||
* | X86 pmovsx/pmovzx ignore the upper half of their inputs. | Stuart Hastings | 2011-05-17 | 2 | -1/+23 |
| | | | | | | rdar://problem/6945110 llvm-svn: 131493 | ||||
* | Preserve line number information. | Devang Patel | 2011-05-17 | 1 | -0/+1 |
| | | | | llvm-svn: 131482 | ||||
* | Set debug loc for new load instruction. | Devang Patel | 2011-05-17 | 1 | -0/+3 |
| | | | | llvm-svn: 131481 | ||||
* | Preserve line number information. | Devang Patel | 2011-05-17 | 1 | -1/+2 |
| | | | | llvm-svn: 131480 | ||||
* | There is no need to force DebugLoc on a PHI at this point. | Devang Patel | 2011-05-16 | 1 | -2/+0 |
| | | | | llvm-svn: 131427 | ||||
* | Preserve debug info for unused zero extended boolean argument. | Devang Patel | 2011-05-16 | 1 | -4/+13 |
| | | | | | | Radar 9422775. llvm-svn: 131422 | ||||
* | Don't do tail calls in a function that call setjmp. The stack might be | Rafael Espindola | 2011-05-16 | 1 | -4/+5 |
| | | | | | | corrupted when setjmp returns again. llvm-svn: 131399 | ||||
* | SimplifyCFG: Use ComputeMaskedBits to prune dead cases from switch instructions. | Benjamin Kramer | 2011-05-14 | 1 | -1/+36 |
| | | | | llvm-svn: 131345 | ||||
* | Avoid combining GEPs that might overflow at runtime. | Stuart Hastings | 2011-05-14 | 1 | -1/+3 |
| | | | | | | | | rdar://problem/9267970 Patch by Julien Lerouge! llvm-svn: 131339 | ||||
* | Fix a source of non determinism in FindUsedTypes, use a SetVector instead of a | Julien Lerouge | 2011-05-13 | 1 | -1/+2 |
| | | | | | | | | set. rdar://9423996 llvm-svn: 131283 | ||||
* | Convert SimplifyIVUsers into a worklist instead of a single pass over | Andrew Trick | 2011-05-13 | 1 | -1/+1 |
| | | | | | | the users. llvm-svn: 131277 | ||||
* | indvars: Added SimplifyIVUsers. | Andrew Trick | 2011-05-12 | 1 | -85/+99 |
| | | | | | | | Interleave IV simplifications. Currently involves EliminateComparison and EliminateRemainder. Next I'll add EliminateExtend. llvm-svn: 131210 | ||||
* | Preserve line number information. | Devang Patel | 2011-05-10 | 1 | -0/+1 |
| | | | | llvm-svn: 131112 | ||||
* | Fix PR9820: a read-only call differs from a load in that a load doesn't | Duncan Sands | 2011-05-06 | 1 | -6/+9 |
| | | | | | | | return the pointer being dereferenced, it returns the pointee, but a call might return the pointer itself. llvm-svn: 130979 | ||||
* | The computation of string length is not that complicated. Fix it, again. :) | Nick Lewycky | 2011-05-05 | 1 | -1/+1 |
| | | | | llvm-svn: 130967 | ||||
* | PR9838: Fix transform introduced in r127064 to not trigger when only one ↵ | Eli Friedman | 2011-05-05 | 1 | -1/+1 |
| | | | | | | side of the icmp is an exact shift. llvm-svn: 130954 | ||||
* | Update the gcov version used slightly, to make it stop causing modern gcov's to | Nick Lewycky | 2011-05-05 | 1 | -13/+20 |
| | | | | | | crash. llvm-svn: 130911 | ||||
* | Remove dead function. | Nick Lewycky | 2011-05-05 | 1 | -5/+0 |
| | | | | llvm-svn: 130903 | ||||
* | When the path wasn't emitted by the frontend, discard any path on the source | Nick Lewycky | 2011-05-05 | 1 | -6/+11 |
| | | | | | | filename. llvm-svn: 130897 | ||||
* | Set debug loc for new instructions. | Devang Patel | 2011-05-04 | 1 | -3/+3 |
| | | | | llvm-svn: 130895 |