aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/TransformInternals.cpp
Commit message (Collapse)AuthorAgeFilesLines
* avoid dividing by zero when dealing with zero sized types (like [0 x double])Chris Lattner2003-06-231-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6862 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: LevelRaise/2003-06-07-EmptyArrayTest.llChris Lattner2003-06-071-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6669 91177308-0d34-0410-b5e6-96231b3b80d8
* s/convertable/convertible/gMisha Brukman2003-05-201-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6248 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the levelraise pass be well behaved w.r.t the TargetData that the currentChris Lattner2003-04-241-12/+7
| | | | | | | PassMAnager provides. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5896 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: LevelRaise/2003-01-22-GEPProblem.llChris Lattner2003-01-231-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5407 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: 2002-10-02-SignExtensionProblem.llChris Lattner2002-10-021-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4017 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix: test/Regression/LLC/badidx.c problemChris Lattner2002-09-161-11/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3763 91177308-0d34-0410-b5e6-96231b3b80d8
* - Change getelementptr instruction to use long indexes instead of uintChris Lattner2002-09-111-7/+7
| | | | | | | indexes for sequential types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3681 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify code (somtimes dramatically), by using the new "auto-insert" featureChris Lattner2002-09-101-20/+10
| | | | | | | of instruction constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3656 91177308-0d34-0410-b5e6-96231b3b80d8
* - Eliminate the last traces of the 'analysis' namespaceChris Lattner2002-08-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3550 91177308-0d34-0410-b5e6-96231b3b80d8
* *** empty log message ***Chris Lattner2002-07-251-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3075 91177308-0d34-0410-b5e6-96231b3b80d8
* MEGAPATCH checkin.Chris Lattner2002-06-251-4/+4
| | | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor code out of TransformInternals into the Transform Utils libraryChris Lattner2002-05-071-64/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2515 91177308-0d34-0410-b5e6-96231b3b80d8
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
* * Clean up the code a bitChris Lattner2002-04-161-8/+4
| | | | | | | | | * Allow structs with negative offsets. This enables the em3d benchmark to be made typesafe. In this case, the struct had an array as the first element, so a negative index was ok (the expr was -8 + 8x) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2271 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement TODO, fixing bug:Chris Lattner2002-04-091-16/+9
| | | | | | | test/Regression/Transforms/LevelRaise/2002-04-09-MissedRaise.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2219 91177308-0d34-0410-b5e6-96231b3b80d8
* Add explicit #includes of Function.h to make up for the removed #includeChris Lattner2002-04-091-0/+1
| | | | | | | in iOther.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2209 91177308-0d34-0410-b5e6-96231b3b80d8
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-071-1/+0
| | | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8
* Make ConvertableToGEP handle cases where the user is indexing into theChris Lattner2002-03-211-23/+29
| | | | | | | | | | | | first element of a structure type. Before this would not be handled because getStructOffset would either stop immediately (because StopEarly was true and Offset = 0), or blast past the level we wanted. Now ConvertableToGEP steps down through the type one level at a time, checking the Offset and Scale conditions at each step git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1931 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the new InsertInstBeforeInst functionChris Lattner2002-03-211-0/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1930 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.llChris Lattner2002-03-211-15/+21
| | | | | | | | | | | | | 2. Allow negative scales in ConvertableToGEP, so that this loop from alloc_tree in the Olden health benchmark is correctly raised: for (i = 3; i >= 0; i--) fval[i] = alloc_tree(level - 1, label*4 + i + 1, new); Stepping through the array backwards caused a negative scale. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1922 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.llChris Lattner2002-03-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1869 91177308-0d34-0410-b5e6-96231b3b80d8
* update commentsChris Lattner2002-03-111-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1862 91177308-0d34-0410-b5e6-96231b3b80d8
* We were not correctly burrowing down multiple levels to get to a leaf. Fix ↵Chris Lattner2002-03-071-1/+2
| | | | | | this now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1833 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix for test/Regression/Other/2002-02-14-LevelRaiseBadAssert.llChris Lattner2002-02-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1767 91177308-0d34-0410-b5e6-96231b3b80d8
* Elminate an unused variableChris Lattner2002-01-211-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1518 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to build successfully with GCC 3.02Chris Lattner2002-01-201-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
* * add ReplaceInstWithInstChris Lattner2001-12-141-26/+25
| | | | | | | | * Add support for pointer indexing * Fix minor bugs that are majorly annoying git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1467 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't insert scales of 1 :)Chris Lattner2001-12-071-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1430 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug that caused invalid transformations to be appliedChris Lattner2001-12-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1426 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle more complex array indexing expressionsChris Lattner2001-12-051-14/+47
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1424 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename ConstPoolVal -> ConstantChris Lattner2001-12-031-5/+5
| | | | | | | | Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
* losslessCastableTypes is moved to Type classChris Lattner2001-11-261-50/+133
| | | | | | | getStructOffsetType supports array indexing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1343 91177308-0d34-0410-b5e6-96231b3b80d8
* Better heuristics for handling arraysChris Lattner2001-11-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1296 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve raising significantlyChris Lattner2001-11-081-0/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1214 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor code to share stuffChris Lattner2001-11-041-0/+89
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1127 91177308-0d34-0410-b5e6-96231b3b80d8