summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/MergeFunc
Commit message (Collapse)AuthorAgeFilesLines
...
* When removing a function from the function set and adding it to deferred, weNick Lewycky2011-02-091-0/+276
| | | | | | | | | | | | | could end up removing a different function than we intended because it was functionally equivalent, then end up with a comparison of a function against itself in the next round of comparisons (the one in the function set and the one on the deferred list). To fix this, I introduce a choice in the form of comparison for ComparableFunctions, either normal or "pointer only" used to find exact Function*'s in lookups. Also add some debugging statements. llvm-svn: 125180
* Fix surprising missed optimization in mergefunc where we forgot to considerNick Lewycky2011-01-271-0/+76
| | | | | | that relationships like "i8* null" is equivalent to "i32* null". llvm-svn: 124368
* Teach mergefunc how to emit aliases safely again -- but keep it turned it offNick Lewycky2011-01-251-0/+4
| | | | | | | for now. It's controlled by the HasGlobalAliases variable which is not attached to any flag yet. llvm-svn: 124182
* Arrays and vectors with different numbers of elements are not equivalent.Nick Lewycky2010-07-161-0/+18
| | | | llvm-svn: 108517
* Change tests from "opt %s" to "opt < %s" so that opt doesn't see theDan Gohman2009-09-113-3/+3
| | | | | | | | input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
* Use opt -S instead of piping bitcode output through llvm-dis.Dan Gohman2009-09-081-1/+1
| | | | llvm-svn: 81257
* Change these tests to feed the assembly files to opt directly, insteadDan Gohman2009-09-083-3/+3
| | | | | | of using llvm-as, now that opt supports this. llvm-svn: 81226
* Given two identical weak functions, produce one internal function and two weakNick Lewycky2009-06-121-0/+13
| | | | | | thunks. llvm-svn: 73230
* This test is wrong. If you have two weak functions F and G you can't makeNick Lewycky2009-06-121-11/+0
| | | | | | | either one call the other since either one can be replaced at link time, and they need to be independent. llvm-svn: 73225
* Fix tests not to emit IR outputAnton Korobeynikov2008-11-042-2/+2
| | | | llvm-svn: 58729
* Changes from Duncan's review:Nick Lewycky2008-11-021-0/+11
| | | | | | | | * merge two weak functions by making them both alias a third non-weak fn * don't reimplement CallSite::hasArgument * whitelist the safe linkage types llvm-svn: 58568
* Add a new MergeFunctions pass. It finds identical functions and merges them.Nick Lewycky2008-11-023-0/+61
This triggers only 60 times in llvm-test (look at .llvm.bc, not .linked.rbc) and so it probably wont be turned on by default. Also, may of those are likely to go away when PR2973 is fixed. llvm-svn: 58557
OpenPOWER on IntegriCloud