summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/getelementptr.ll
Commit message (Collapse)AuthorAgeFilesLines
...
* manually upgrade a bunch of tests to modern syntax, and remove some thatChris Lattner2011-06-171-8/+0
| | | | | | are either unreduced or only test old syntax. llvm-svn: 133228
* Add a testcase for getelementptr index promotion.Dan Gohman2010-05-281-0/+9
| | | | llvm-svn: 104944
* Generalize target-independent folding rules for sizeof to handle moreDan Gohman2010-02-011-1/+1
| | | | | | | | | | | | | | | | | | | cases, and implement target-independent folding rules for alignof and offsetof. Also, reassociate reassociative operators when it leads to more folding. Generalize ScalarEvolution's isOffsetOf to recognize offsetof on arrays. Rename getAllocSizeExpr to getSizeOfExpr, and getFieldOffsetExpr to getOffsetOfExpr, for consistency with analagous ConstantExpr routines. Make the target-dependent folder promote GEP array indices to pointer-sized integers, to make implicit casting explicit and exposed to subsequent folding. And add a bunch of testcases for this new functionality, and a bunch of related existing functionality. llvm-svn: 94987
* Teach ConstantFolding to do a better job when folding gep(bitcast).Nick Lewycky2009-11-291-1/+1
| | | | | | This permits the devirtualization of llvm.org/PR3100#c9 when compiled by clang. llvm-svn: 90099
* Autoupgrade malloc insts to malloc calls.Victor Hernandez2009-10-171-1/+1
| | | | | | | | Update testcases that rely on malloc insts being present. Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step. llvm-svn: 84292
* Revert 82694 "Auto-upgrade malloc instructions to malloc calls." because it ↵Victor Hernandez2009-09-251-1/+1
| | | | | | causes regressions in the nightly tests. llvm-svn: 82784
* Auto-upgrade malloc instructions to malloc calls.Victor Hernandez2009-09-241-1/+1
| | | | | | Reviewed by Devang Patel. llvm-svn: 82694
* Change tests from "opt %s" to "opt < %s" so that opt doesn't see theDan Gohman2009-09-111-1/+1
| | | | | | | | 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
* Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword andDan Gohman2009-09-111-2/+2
| | | | | | | | | | | | | how to fold notionally-out-of-bounds array getelementptr indices instead of just doing these in lib/Analysis/ConstantFolding.cpp, because it can be done in a fairly general way without TargetData, and because not all constants are visited by lib/Analysis/ConstantFolding.cpp. This enables more constant folding. Also, set the "inbounds" flag when the getelementptr indices are one-past-the-end. llvm-svn: 81483
* Factor out the code for checking that all indices in a getelementptr areDan Gohman2009-09-101-0/+9
| | | | | | | | | within the notional bounds of the static type of the getelementptr (which is not the same as "inbounds") from GlobalOpt into a utility routine, and use it in ConstantFold.cpp to check whether there are any mis-behaved indices. llvm-svn: 81478
* 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-081-1/+1
| | | | | | of using llvm-as, now that opt supports this. llvm-svn: 81226
* suck a bunch more gep tests into getelementptr.ll and filecheckize them all.Chris Lattner2009-08-301-16/+271
| | | | llvm-svn: 80517
* consolodate various GEP tests into getelementptr.ll using filecheck.Chris Lattner2009-08-301-0/+106
| | | | llvm-svn: 80514
* convert to filecheckChris Lattner2009-08-301-25/+44
| | | | llvm-svn: 80510
* Byebye llvm-upgrade!Tanya Lattner2008-03-251-50/+55
| | | | llvm-svn: 48762
* For PR1319:Reid Spencer2007-04-151-0/+1
| | | | | | | Make use of the END. facility on all files > 1K so that we aren't wasting CPU cycles searching for RUN: lines that we'll never find. llvm-svn: 36059
* For PR1319:Reid Spencer2007-04-141-1/+2
| | | | | | Upgrade tests to work with new llvm.exp version of llvm_runtest. llvm-svn: 36013
* new testcaseChris Lattner2007-03-251-1/+2
| | | | llvm-svn: 35340
* Regression is gone, don't try to find it on clean target.Reid Spencer2007-01-171-0/+73
llvm-svn: 33296
OpenPOWER on IntegriCloud