aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement InstCombine/2003-08-12-AllocaNonNull.llChris Lattner2003-08-131-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7807 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not cannonicalize (X != 0) into (cast X to bool)Chris Lattner2003-08-131-79/+68
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7806 91177308-0d34-0410-b5e6-96231b3b80d8
* Reorganize tests because we no longer cannonicalize X != 0 -> cast X to boolChris Lattner2003-08-136-35/+28
| | | | | | | In fact, we plan to eliminate cast to bool entirely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7805 91177308-0d34-0410-b5e6-96231b3b80d8
* Update test to represent new cannonicalization rules for multipliesChris Lattner2003-08-131-4/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7804 91177308-0d34-0410-b5e6-96231b3b80d8
* Change cannonicalization rules: add X,X is represented as multiplies, multipliesChris Lattner2003-08-131-8/+24
| | | | | | | of a power of two are represented as a shift. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7803 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust files for move of mapping info stuff into the Sparc directoryChris Lattner2003-08-135-19/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7802 91177308-0d34-0410-b5e6-96231b3b80d8
* Mapping directory no longer existsChris Lattner2003-08-131-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7801 91177308-0d34-0410-b5e6-96231b3b80d8
* Incorporate mapping library into the sparc libraryChris Lattner2003-08-133-4/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7800 91177308-0d34-0410-b5e6-96231b3b80d8
* Obsolete fileChris Lattner2003-08-131-4/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7799 91177308-0d34-0410-b5e6-96231b3b80d8
* Just incorporating some notes I wrote for myself into a place where they won'tBrian Gaeke2003-08-131-0/+14
| | | | | | | get lost... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7798 91177308-0d34-0410-b5e6-96231b3b80d8
* Make MInst2LVSetBI and MInst2LVSetAI be hash_maps instead of maps.Vikram S. Adve2003-08-121-5/+10
| | | | | | | Add some comments and non-const methods to fix constness problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7797 91177308-0d34-0410-b5e6-96231b3b80d8
* For instructions in a delay slot of another instruction,Vikram S. Adve2003-08-122-24/+32
| | | | | | | | | we no longer need to find the live-before set of the delayed branch since that set is now included the live-before/after set of the instructions in each delay slot. Just assert that instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7796 91177308-0d34-0410-b5e6-96231b3b80d8
* For an instruction with delay slots, mark all live values beforeVikram S. Adve2003-08-124-32/+84
| | | | | | | | the instruction as being live before/after the delay slot instructions as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7795 91177308-0d34-0410-b5e6-96231b3b80d8
* Give std::map<BasicBlock *, BasicBlock *> the short name BBMap, becauseBrian Gaeke2003-08-121-63/+27
| | | | | | | | | | | | | | | it's used 7 different times. Rename `getBackEdges' to `findAndInstrumentBackEdges', for clarity. Remove some excess whitespace and commented-out code. Use shorter forms of CallInst ctors. Do not make `reopt_threshold' visible to the LLVM program, and do not pass it to the call to `reoptimizerInitialize'. Don't pass the GlobalVariable representing it to any of our helper methods. `reopt_threshold' is an internal parameter of the reoptimizer, which InstLoops does not need to know about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7794 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow pulling logical operations through shifts.Chris Lattner2003-08-121-16/+61
| | | | | | | This implements InstCombine/shift.ll:test14* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7793 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: Reassociate/2003-08-12-InfiniteLoop.llChris Lattner2003-08-121-5/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7792 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2003-08-121-0/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7791 91177308-0d34-0410-b5e6-96231b3b80d8
* Right, instcombine cannot remove ((X >> C) << C) if it's signed.Chris Lattner2003-08-121-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7790 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcasesChris Lattner2003-08-121-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7789 91177308-0d34-0410-b5e6-96231b3b80d8
* Reenable optimized buildChris Lattner2003-08-122-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7788 91177308-0d34-0410-b5e6-96231b3b80d8
* Assign finer grained ranks, make sure to reassociate top-level after ↵Chris Lattner2003-08-121-7/+11
| | | | | | reassociating bottom level git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7787 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify codeChris Lattner2003-08-121-11/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7783 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement testcases InstCombine/or.ll:test16/test17Chris Lattner2003-08-121-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7782 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcasesChris Lattner2003-08-121-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7781 91177308-0d34-0410-b5e6-96231b3b80d8
* Merged in changes between PRE11_ROOT and LLVM_PRE111 (i.e. the beginning ofJohn Criswell2003-08-123-18/+18
| | | | | | | | | | | | | | the pre-release 1.1 branch and pre-release 1.1.1). Made the USE_SPEC option work. Silenced unnecessary error output from the cmp command when checking for updates to lex/yacc generated files. This fixes a problem where we get error messages the first time the file is generated. Fixed the distclean option. It is now in the Makefile (i.e. only runs in the top level source directory), removes more files, and plays nicely with external project Makefiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7780 91177308-0d34-0410-b5e6-96231b3b80d8
* Add FunctionPassManager - it's like a PassManager, but it only deals inBrian Gaeke2003-08-122-1/+35
| | | | | | | FunctionPasses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7778 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable emitting LLVM-to-MI maps, by default.Vikram S. Adve2003-08-121-9/+15
| | | | | | | Add -emitmaps options to turn this back on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7774 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for feature we should support eventuallyChris Lattner2003-08-121-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7772 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix emission of instructions that directly reference MBBsChris Lattner2003-08-122-8/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7771 91177308-0d34-0410-b5e6-96231b3b80d8
* Make LOC count more accurate by not including the tablegen lexer/parser, any ↵Chris Lattner2003-08-121-1/+6
| | | | | | .inc files, which are generated by tablegen, nor .lo files which sometimes get picked up from libtool git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7770 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the Any type. Minor fixes and enhancements for BasicBlock ↵Chris Lattner2003-08-124-14/+36
| | | | | | operands git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7769 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename DNVT_bool to DNVT_i1 to be consistent with type systemChris Lattner2003-08-125-16/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7768 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for basicblocks, setCC instructions, and branchesChris Lattner2003-08-121-2/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7767 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for a bool argtyChris Lattner2003-08-124-4/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7766 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix va_arg to generate LDDFi for floating point values, instead of LDXi.Vikram S. Adve2003-08-121-2/+4
| | | | | | | All non-FP cases use LDXi as before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7765 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix: Some nodes pointed to by globals may not be marked incomplete and ↵Sumant Kowshik2003-08-121-5/+18
| | | | | | need to be tracked to find pool arguments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7763 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor fix so that the program exits upon a poolfree failureSumant Kowshik2003-08-121-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7762 91177308-0d34-0410-b5e6-96231b3b80d8
* It is not an error if a rule does not match, it's just a failed match!Chris Lattner2003-08-112-4/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7761 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of the LLEE, the (LL)VM (E)xecution (E)nvironment.Misha Brukman2003-08-115-0/+223
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7760 91177308-0d34-0410-b5e6-96231b3b80d8
* Add basic support for 16 and 32 bit function arguments!Chris Lattner2003-08-111-2/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7755 91177308-0d34-0410-b5e6-96231b3b80d8
* add frameidx supportChris Lattner2003-08-111-15/+16
| | | | | | | | Make load work Make type inference infer from Arg1 to arg0 as well as from arg0 to arg1 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7754 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for frameidx and literal immediates for instructionsChris Lattner2003-08-114-22/+84
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7749 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for naming the destination of a "set" in a patternChris Lattner2003-08-114-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7748 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the Arg1 argument typeChris Lattner2003-08-114-6/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7747 91177308-0d34-0410-b5e6-96231b3b80d8
* Sort #includes, eliminate #include of "llvm/Type.h" which was redundantChris Lattner2003-08-112-8/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7746 91177308-0d34-0410-b5e6-96231b3b80d8
* Cygwin apparently works with %'s on registers!Chris Lattner2003-08-112-10/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7745 91177308-0d34-0410-b5e6-96231b3b80d8
* If we can't find INT64_MAX, set it to a reasonable default value,Brian Gaeke2003-08-111-1/+9
| | | | | | | instead of printing out an (incorrect) #error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7744 91177308-0d34-0410-b5e6-96231b3b80d8
* Whoops, accidental checkin. :(Chris Lattner2003-08-111-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7743 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new -enable-cygwin-compatible-output argument, which make the output moreChris Lattner2003-08-113-39/+59
| | | | | | | | consumably by the cygwin assembler. This is really just a nasty hack until we get real target triple support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7742 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support to the mangler for targets which require _'s on global symbolsChris Lattner2003-08-114-24/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7741 91177308-0d34-0410-b5e6-96231b3b80d8