summaryrefslogtreecommitdiff
path: root/lib/Transforms
Commit message (Collapse)AuthorAge
...
* Don't forget arguments!Devang Patel2008-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59745 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not forget llvm.dbg.declare's first argument while removing debugging ↵Devang Patel2008-11-20
| | | | | | information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59688 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Removed source file.Oscar Fuentes2008-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59662 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not use separate utility to walk all instructions and remove dead dbg ↵Devang Patel2008-11-19
| | | | | | intrinsics. Let instcombiner do this job. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59659 91177308-0d34-0410-b5e6-96231b3b80d8
* Let instcombiner remove redundant dbg intrinsics.Devang Patel2008-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59658 91177308-0d34-0410-b5e6-96231b3b80d8
* If there are two consecutive llvm.dbg.stoppoint calls thenDevang Patel2008-11-19
| | | | | | | | it is likely that the optimizer deleted code in between these two intrinsics. Keep only the last llvm.dbg.stoppoint in this case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59657 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused variables.Devang Patel2008-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59570 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Devang Patel2008-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59569 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new helper pass that strips all symbol names except debugging information.Devang Patel2008-11-18
| | | | | | | This pass makes it easier to test wheter debugging info. influences optimization passes or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59552 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove even more llvm.dbg variables.Devang Patel2008-11-18
| | | | | | | | Remove all dead globals from llvm.metadata. Ignore linkonce linkage for selected llvm.dbg values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59547 91177308-0d34-0410-b5e6-96231b3b80d8
* Initialize MallocFunc and FreeFunc properly.Devang Patel2008-11-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59538 91177308-0d34-0410-b5e6-96231b3b80d8
* Cast to remove warning about comparing signed and unsigned.Bill Wendling2008-11-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59518 91177308-0d34-0410-b5e6-96231b3b80d8
* Give SIToFPInst preference over UIToFPInst because it is faster on platforms ↵Devang Patel2008-11-18
| | | | | | that are widely used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59476 91177308-0d34-0410-b5e6-96231b3b80d8
* While handling floating point IVs lift restrictions on initial value and ↵Devang Patel2008-11-17
| | | | | | increment value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59471 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle floating point ivs during doInitialization().Devang Patel2008-11-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59466 91177308-0d34-0410-b5e6-96231b3b80d8
* Let AnalyzeAlloca() remove debug intrinsics.Devang Patel2008-11-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59454 91177308-0d34-0410-b5e6-96231b3b80d8
* If SI->size() is 0, we are not allowed to dereference ->begin().Torok Edwin2008-11-16
| | | | | | | | This fixed PR3078. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59416 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate some std::set's.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59409 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify loopChris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59406 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify a bunch more instcombines to use m_Specific etc.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59403 91177308-0d34-0410-b5e6-96231b3b80d8
* factor the code for simplifying (icmp)|(icmp) into its own function.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59402 91177308-0d34-0410-b5e6-96231b3b80d8
* do some computation with apints instead of ConstantInts.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59401 91177308-0d34-0410-b5e6-96231b3b80d8
* merge a check into a place where it is simpler.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59400 91177308-0d34-0410-b5e6-96231b3b80d8
* factor a whole bunch of code out into a helper function.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59398 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify the conditions on two gigantic if's, decreasing indentationChris Lattner2008-11-16
| | | | | | | a bit. Next step is to factor out into their own helper functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59397 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify some instcombine matches by using m_SpecificChris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59395 91177308-0d34-0410-b5e6-96231b3b80d8
* Use new m_SelectCst template to eliminate macros.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59392 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify code.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59390 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle the case where there is no "not". It is possible it got Chris Lattner2008-11-16
| | | | | | | folded into the select. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59389 91177308-0d34-0410-b5e6-96231b3b80d8
* factor a bunch of copy/paste code out into a helper function.Chris Lattner2008-11-16
| | | | | | | | Eliminate the cases checking for cond?0:-1, since that is already handled by commutative checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59388 91177308-0d34-0410-b5e6-96231b3b80d8
* rearrange some code, no functionality change.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59381 91177308-0d34-0410-b5e6-96231b3b80d8
* if we're going to use a macro, use it maximally. no functionality change.Chris Lattner2008-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59380 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor code.Devang Patel2008-11-14
| | | | | | | Strip debug information before stripping symbol names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59328 91177308-0d34-0410-b5e6-96231b3b80d8
* Really remove all debug information.Devang Patel2008-11-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59208 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Remove removed source file.Oscar Fuentes2008-11-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59098 91177308-0d34-0410-b5e6-96231b3b80d8
* RemoveDevang Patel2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59093 91177308-0d34-0410-b5e6-96231b3b80d8
* Undo previous check-in.Devang Patel2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59092 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake: Updated list of source files for lib/Transforms/Utils.Oscar Fuentes2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59077 91177308-0d34-0410-b5e6-96231b3b80d8
* Add utility pass to remove dbg info.Devang Patel2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59068 91177308-0d34-0410-b5e6-96231b3b80d8
* Use actual function name in comments.Devang Patel2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59063 91177308-0d34-0410-b5e6-96231b3b80d8
* Update CMakeLists.txtCedric Venet2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59039 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup debug info. assocated with deleted instructions.Devang Patel2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59012 91177308-0d34-0410-b5e6-96231b3b80d8
* Add utility routines to remove dead debug info.Devang Patel2008-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59011 91177308-0d34-0410-b5e6-96231b3b80d8
* If the sign of exit condition and split condition does not matchDevang Patel2008-11-10
| | | | | | | then do not split loop index. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58995 91177308-0d34-0410-b5e6-96231b3b80d8
* Third time's a charm.Bill Wendling2008-11-10
| | | | | | | | The previous patches didn't match correctly. Also, we need to make sure that the conditional is the same before doing the transformation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58978 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for the following definition of shufflevector Mon P Wang2008-11-10
| | | | | | | | <result> = shufflevector <n x <ty>> <v1>, <n x <ty>> <v2>, <m x i32> <mask> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58964 91177308-0d34-0410-b5e6-96231b3b80d8
* Correction for the last patch. Should match the conditional in the first partBill Wendling2008-11-09
| | | | | | | of the select match, not the select instruction itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58947 91177308-0d34-0410-b5e6-96231b3b80d8
* The method of doing the matching with a 'select' instruction was wrong. TheBill Wendling2008-11-09
| | | | | | | | | | | | | | | | | | | original code was matching like this: if (match(A, m_Not(m_Value(B)))) B was already matched as a 'select' instruction. However, this isn't matching what we think it's matching. It would match B as a 'Value', so basically anything would match to it. In this case, a Constant matched. B was replaced with a constant representation. And then the wrong value would be used in the SelectInst::Create statement, causing a crash. After thinking on this for a moment, and after Nick L. told me how the pattern matching stuff was supposed to work, the solution was to match NOT an m_Value, but an m_Select. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58946 91177308-0d34-0410-b5e6-96231b3b80d8
* fix leakage of ValueNumberingNuno Lopes2008-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58933 91177308-0d34-0410-b5e6-96231b3b80d8
* If the LHS of the FCMP is coming from a UIToFP instruction, then we don't wantBill Wendling2008-11-09
| | | | | | | | | | | | | | | | | | | | | | | | to generate signed ICMP instructions to replace the FCMP. This would violate the following: define i1 @test1(i32 %val) { %1 = uitofp i32 %val to double %2 = fcmp ole double %1, 0.000000e+00 ret i1 %2 } would be transformed into: define i1 @test1(i32 %val) { %1 = icmp slt i33 %val, 1 ret i1 %1 } which is obviously wrong. This patch modifes InstCombiner::FoldFCmp_IntToFP_Cst to handle when the LHS comes from UIToFP. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58929 91177308-0d34-0410-b5e6-96231b3b80d8