summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fold add X, 0 for floating point types as wellChris Lattner2002-05-231-2/+1
| | | | llvm-svn: 2734
* Fix bug: test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.llChris Lattner2002-05-231-1/+4
| | | | | | Which contains a description of why this is neccesary. llvm-svn: 2733
* Convert RegClass::IsColorUsedArr from a dynamically allocated array toChris Lattner2002-05-235-56/+49
| | | | | | a vector. This makes asserting on array bounds easier. llvm-svn: 2731
* Avoid creating the symbol table if we don't need it.Chris Lattner2002-05-221-2/+2
| | | | llvm-svn: 2728
* Support function declarations with either %XXX or "XXX" style for nowChris Lattner2002-05-221-2/+4
| | | | | | | "XXX" style should be considered deprecated, and will hopefully be removed in the future. llvm-svn: 2727
* Print out function name with % style instead of "" styleChris Lattner2002-05-221-2/+2
| | | | llvm-svn: 2726
* Convert code to use the DEBUG macro so that debug code can simply beChris Lattner2002-05-225-197/+147
| | | | | | enabled with the -debug command line option. llvm-svn: 2721
* Fix and implement ADCE to finally work!Chris Lattner2002-05-221-136/+159
| | | | llvm-svn: 2720
* Convert transforms over to standardize debugging output on -debug optionChris Lattner2002-05-223-76/+26
| | | | llvm-svn: 2714
* Use the new DEBUG(x) macro to allow debugging code to be enabled on the ↵Chris Lattner2002-05-224-62/+36
| | | | | | commandline llvm-svn: 2713
* Move debug options out of header files so that the header does not haveChris Lattner2002-05-224-10/+14
| | | | | | to #include CommandLine.h. llvm-svn: 2712
* Move the DEBUG_LV option out of the public header file into a private header.Chris Lattner2002-05-221-0/+9
| | | | llvm-svn: 2711
* Avoid #including CommandLine.hChris Lattner2002-05-221-4/+2
| | | | llvm-svn: 2710
* Implement a new command line option, -debug, which is meant to unify all ofChris Lattner2002-05-221-0/+3
| | | | | | | | the random debugging macros scattered throughout llvm. The new DEBUG(x) macro should be used instead of special purpose debug macros. llvm-svn: 2709
* Add ability to update existing variables with values read from the command lineChris Lattner2002-05-221-1/+1
| | | | | | | | | to certain classes. This is nice because it means that in header files we can just declare a value, and still have that value be set based on a command-line argument. The difference is now that the #include of CommandLine.h does not need to go into the header file as well. llvm-svn: 2708
* Fix bug: test/Regression/Transforms/SCCP/2002-05-21-InvalidSimplify.llChris Lattner2002-05-221-12/+12
| | | | | | Improperly handling edges... by not marking them alive properly llvm-svn: 2707
* * Fix typeoChris Lattner2002-05-211-1/+2
| | | | | | | * Provide a #include of <malloc.h> so that the sun C compiler does not miscompile malloc function calls llvm-svn: 2702
* Add implementation of SimplifyCFGChris Lattner2002-05-211-0/+198
| | | | llvm-svn: 2701
* New CFG Simplification pass: removed from the old DCE passChris Lattner2002-05-211-0/+100
| | | | llvm-svn: 2700
* Simplify interface to ConstantFoldTerminatorChris Lattner2002-05-211-3/+3
| | | | llvm-svn: 2697
* Fix bug: test/Regression/Transforms/CFGSimplify/2002-05-21-PHIElimination.llChris Lattner2002-05-211-4/+21
| | | | llvm-svn: 2694
* Fix bug: test/Regression/CBackend/2002-05-21-MissingReturn.llChris Lattner2002-05-211-1/+3
| | | | llvm-svn: 2690
* Fixed the makefile to not die when compiling a new, empty, source directoryMehwish Nagda2002-05-211-0/+3
| | | | llvm-svn: 2688
* * Change commandline options a bit to be nicerChris Lattner2002-05-201-42/+47
| | | | | | | * Insert accurate prototypes for functions * Insert casts to use accurate prototypes llvm-svn: 2677
* Hide debugging optionsChris Lattner2002-05-204-4/+4
| | | | llvm-svn: 2676
* Remove explicit support for tracing code. It should be linked into theChris Lattner2002-05-201-43/+10
| | | | | | executable just like everything else. llvm-svn: 2674
* Remove tracing code hackChris Lattner2002-05-201-1/+1
| | | | llvm-svn: 2673
* Fix bug: test/Regression/Transforms/SCCP/2002-05-20-MissedIncomingValue.llChris Lattner2002-05-201-1/+11
| | | | | | That was causing a miscompilation of strtol/atoi plus others llvm-svn: 2669
* Don't lose namespace qualifications on previous patch.Chris Lattner2002-05-201-2/+2
| | | | llvm-svn: 2664
* Rename IsPowerOf2 to isPowerOf2Chris Lattner2002-05-191-2/+2
| | | | llvm-svn: 2663
* Link with test/Libraries/libinstr32.a for runtime routinesVikram S. Adve2002-05-191-1/+1
| | | | | | supporting tracing. That should be moved to a "runtime" directory. llvm-svn: 2660
* Added external functions for hashing pointers to sequence numbers.Vikram S. Adve2002-05-191-0/+44
| | | | llvm-svn: 2659
* InstrnsBefore and InstrnsAfter are now vectors instead of deques.Vikram S. Adve2002-05-191-3/+3
| | | | | | | May be slightly less efficient but significantly reduces special cases interfaces in code generation. llvm-svn: 2649
* Hash pointer values to a sequence number to get identical results fromVikram S. Adve2002-05-191-39/+197
| | | | | | | | | lli and llc. This is controlled with options -tracehash on|off. Also, added an option to specify which functions should be traced. Particularly useful to reduce output volume in basic-block tracing. llvm-svn: 2646
* Better folding getelementptr operations with mixedVikram S. Adve2002-05-191-41/+61
| | | | | | | | array and struct indexes. Update operand values in CallArgsDescriptor (a new class) when replacing constant values with immediates. llvm-svn: 2645
* cpValue2Value now needs a vector of MachineInstr to store return values.Vikram S. Adve2002-05-191-16/+20
| | | | llvm-svn: 2644
* Annotation class for MachineInstr.Vikram S. Adve2002-05-191-0/+39
| | | | llvm-svn: 2643
* Numerous bug fixes:Vikram S. Adve2002-05-192-27/+58
| | | | | | | | | | | | | | | | | | | -- passing FP arguments to functions with more than 6 arguments -- passing FP arguments to varargs functions -- passing FP arguments to functions with no prototypes -- incorrect coloring for CC registers (both int and FP): interferences were being completely ignored for int CC and were considered but no spills were marked for fp CC! Also some code improvements: -- better interface to generating machine instr for common cases (many places still need to be updated to use this interface) -- annotations on MachineInstr to communicate information from one codegen phase to another (now used to pass information about CALL/JMPLCALL operands from selection to register allocation) -- all sizes and offests in class TargetData are uint64_t instead of uint llvm-svn: 2642
* Add integer register size field.Vikram S. Adve2002-05-191-27/+37
| | | | | | | Make all sizes and offsets uint64_t instead of uint. Fixed GetIndexedOffset to handle mixed array and struct indices. llvm-svn: 2641
* Numerous bug fixes:Vikram S. Adve2002-05-198-887/+1004
| | | | | | | | | | | | | | | | | | | | | | | | -- correct sign extensions for integer casts and for shift-by-constant instructions generated for integer multiply -- passing FP arguments to functions with more than 6 arguments -- passing FP arguments to varargs functions -- passing FP arguments to functions with no prototypes -- incorrect stack frame size when padding a section -- folding getelementptr operations with mixed array and struct indexes -- use uint64_t instead of uint for constant offsets in mem operands -- incorrect coloring for CC registers (both int and FP): interferences were being completely ignored for int CC and were considered but no spills were marked for fp CC! Also some code improvements: -- better interface to generating machine instr for common cases (many places still need to be updated to use this interface) -- annotations on MachineInstr to communicate information from one codegen phase to another (now used to pass information about CALL/JMPLCALL operands from selection to register allocation) -- all sizes and offests in class TargetData are uint64_t instead of uint llvm-svn: 2640
* Fix bug: test/Regression/CBackend/2002-05-16-NameCollide.ll by trackingChris Lattner2002-05-171-2/+24
| | | | | | | which global variables would have name collisions if they were not mangled, and use this info to mangle them iff they would collide. llvm-svn: 2639
* * Make debug output conditional on #defineChris Lattner2002-05-161-13/+99
| | | | | | | | | * Add optimization to rank computation to not recursively search when unneccesary. * More agressively negate expressions to open reassociation opportunities. * Linearize (A+B)+(C+D) into ((A+B)+C)+D llvm-svn: 2637
* * Fix bug: test/Regression/Transforms/GCSE/2002-05-14-OperandSwap.llChris Lattner2002-05-141-7/+32
| | | | | | | By making sure to consider binary expressions identical if their operands are backwards, but swappable. llvm-svn: 2629
* Fix bug: test/Regression/Transforms/InstCombine/2002-05-14-SubFailure.llChris Lattner2002-05-141-1/+1
| | | | llvm-svn: 2627
* Avoid emitting a useless comment for a basic block with no uses (whichChris Lattner2002-05-141-3/+6
| | | | | | often happens for the entry basic block of a function) llvm-svn: 2624
* Fix bug: test/Regression/Transforms/InstCombine/2002-05-14-TouchDeletedInst.llChris Lattner2002-05-141-1/+12
| | | | | | | | | "This testcase caused instcombine to fail because it got the same instruction on it's worklist more than once (which is ok), but then deleted the instruction. Since the inst stayed on the worklist, as soon as it came back up to be processed, bad things happened, and opt asserted." llvm-svn: 2623
* Fix a major source of "type unsafety", where a cast is neccesary, but canChris Lattner2002-05-141-2/+40
| | | | | | | | | be put either before or after a load. We chose to cast the value loaded instead of the pointer to load from. Fixes bug: test/Regression/Transforms/LevelRaise/2002-05-10-LoadPeephole.ll llvm-svn: 2621
* Implement elimination of loadsChris Lattner2002-05-141-18/+176
| | | | llvm-svn: 2620
* Trivial cleanupsChris Lattner2002-05-131-2/+2
| | | | llvm-svn: 2617
* Add method to check to see if two _Instructions_ dominate each otherChris Lattner2002-05-132-0/+28
| | | | llvm-svn: 2616
OpenPOWER on IntegriCloud