summaryrefslogtreecommitdiff
path: root/test/Transforms
Commit message (Collapse)AuthorAge
...
* Handle "if ((x|y) != 0)" for ints like we do for bools. Fixes missedNick Lewycky2006-10-22
| | | | | | | optimization opportunity pointed out by Chris Lattner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31118 91177308-0d34-0410-b5e6-96231b3b80d8
* AllocaInst can't return a null pointer. Fixes missed optimizationNick Lewycky2006-10-22
| | | | | | | opportunity pointed out by Andrew Lewycky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31115 91177308-0d34-0410-b5e6-96231b3b80d8
* Test case forDevang Patel2006-10-20
| | | | | | | http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061016/038780.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31068 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase for PR957Chris Lattner2006-10-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31060 91177308-0d34-0410-b5e6-96231b3b80d8
* It is OK to remove extra cast if operation is EQ/NE even though sourceDevang Patel2006-10-19
| | | | | | | and destination sign may not match but other conditions are met. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31056 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug in PR454 resolution. Added new test case.Devang Patel2006-10-19
| | | | | | | This fixes llvmAsmParser.cpp miscompile by llvm on PowerPC Darwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31053 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase for PR892Chris Lattner2006-10-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30824 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase for SROA for stuff like "union { int*, float* }".Chris Lattner2006-10-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30822 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-10-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30751 91177308-0d34-0410-b5e6-96231b3b80d8
* Move break-crit-edges before the predicate simplifier. Allows us toNick Lewycky2006-10-03
| | | | | | | optimize in more cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30699 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase, malloc should be promoted to [2 x double].Chris Lattner2006-10-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30681 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30554 91177308-0d34-0410-b5e6-96231b3b80d8
* Once we're down to "setcc type constant1, constant2", at least come upNick Lewycky2006-09-20
| | | | | | | with the right answer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30550 91177308-0d34-0410-b5e6-96231b3b80d8
* Use a total ordering to compare instructions.Nick Lewycky2006-09-20
| | | | | | | Fixes infinite loop in resolve(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30540 91177308-0d34-0410-b5e6-96231b3b80d8
* Inspired by the linux kernel, the more we keep adds in the pointer realm, ↵Andrew Lenharth2006-09-19
| | | | | | the better pointer analysis works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30495 91177308-0d34-0410-b5e6-96231b3b80d8
* number test rightChris Lattner2006-09-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30484 91177308-0d34-0410-b5e6-96231b3b80d8
* make this harderChris Lattner2006-09-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30481 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcasesChris Lattner2006-09-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30480 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable dejagnu tests for predicate simplifier.Nick Lewycky2006-09-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30475 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30458 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30455 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase, can be an srl instead of sraChris Lattner2006-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30449 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for PR913Chris Lattner2006-09-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30404 91177308-0d34-0410-b5e6-96231b3b80d8
* xfail this for nowChris Lattner2006-09-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30398 91177308-0d34-0410-b5e6-96231b3b80d8
* The inliner strips dead allocas now. Add a use to allow this test toChris Lattner2006-09-15
| | | | | | | test the right thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30393 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30302 91177308-0d34-0410-b5e6-96231b3b80d8
* testcase for PR908Chris Lattner2006-09-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30274 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase for PR905Chris Lattner2006-09-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30265 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace EquivalenceClasses with a custom-built data structure. Many commonNick Lewycky2006-09-10
| | | | | | | | | | operations (like findProperties) should be faster, at the expense of unionSets being slower in cases that are rare in practise. Don't erase a dead Instruction. This fixes a memory corruption issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30235 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30233 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30229 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-09-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30157 91177308-0d34-0410-b5e6-96231b3b80d8
* Make this testcase actually recursive. I accidentally committed the wrong ↵Owen Anderson2006-09-02
| | | | | | copy last time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30059 91177308-0d34-0410-b5e6-96231b3b80d8
* Make ArgumentPromotion handle recursive functions that pass pointers in ↵Owen Anderson2006-09-02
| | | | | | their recursive calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30057 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve handling of SelectInst.Nick Lewycky2006-09-02
| | | | | | | | | Reorder operations to remove duplicated work. Fix to leave floating-point types out of the optimization. Add tests to predsimplify.ll for SwitchInst and SelectInst handling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30055 91177308-0d34-0410-b5e6-96231b3b80d8
* This program crashes the PredicateSimplifier. Not marked XFAIL becauseNick Lewycky2006-08-31
| | | | | | | the PredicateSimplifier is skipped in make check anyways. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29992 91177308-0d34-0410-b5e6-96231b3b80d8
* Add PredicateSimplifier pass. Collapses equal variables into one formNick Lewycky2006-08-28
| | | | | | | | and simplifies expressions. This implements the optimization described in PR807. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29947 91177308-0d34-0410-b5e6-96231b3b80d8
* opt no longer reads .ll files. Run llvm-as explicitly.Chris Lattner2006-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29924 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement unrolling of multiblock loops. This significantly improves theOwen Anderson2006-08-24
| | | | | | | | | utility of the LoopUnroll pass. Also, add a testcase for multiblock-loop unrolling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29859 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR872:Reid Spencer2006-08-18
| | | | | | | | | | | | | | | | | | | | | Shrinkify LLVM's footprint by removing the analyze tool and moving its functionality into the opt tool. THis eliminates one of the largest tools from LLVM and doesn't make opt much bigger because it already included most of the analysis passes. To get the old analyze functionality pass the -analyze option to opt. Note that the integeration here is dead simple. The "main" of analyze was just copied to opt and invoked if the -analyze option was given. There may be opportunities for further integration such as removing the distinction between transform passes and analysis passes. To use the analysis functionality, if you previously did this: analyze $FNAME -domset -disable-verify you would now do this: opt -analyze $FNAME -domset -disable-verify Pretty simple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29762 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase from PR877Chris Lattner2006-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29672 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase, this used to take hours to loopsimplify.Chris Lattner2006-08-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29646 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase for pr867Chris Lattner2006-08-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29514 91177308-0d34-0410-b5e6-96231b3b80d8
* testcase for PR827Chris Lattner2006-07-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29119 91177308-0d34-0410-b5e6-96231b3b80d8
* Add tests for 16-bit byteswaps.Chris Lattner2006-07-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29086 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a test for the LCSSA issue I just fixed.Owen Anderson2006-07-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29077 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for PR820Chris Lattner2006-07-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29070 91177308-0d34-0410-b5e6-96231b3b80d8
* Infinite loop in instcombine that nate hit.Chris Lattner2006-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28960 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase, reduced by nate, which crashes DSEChris Lattner2006-06-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28949 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase that Nate found where LoopUnswitch chokes on eliminating a dead caseOwen Anderson2006-06-27
| | | | | | | from a switch instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28946 91177308-0d34-0410-b5e6-96231b3b80d8