summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Remove uses of "llvm/Support/Debug.h" from LLVM include files, whichDan Gohman2008-07-073-3/+2
| | | | | | all happened be unnecessary. llvm-svn: 53182
* Remove unnecessary static_casts.Dan Gohman2008-07-071-2/+2
| | | | llvm-svn: 53181
* Remove an unnecessary reinterpret_cast.Dan Gohman2008-07-071-1/+1
| | | | llvm-svn: 53180
* Add explicit keywords.Dan Gohman2008-07-0716-26/+26
| | | | llvm-svn: 53179
* Use empty() instead of size().Dan Gohman2008-07-071-1/+1
| | | | llvm-svn: 53178
* Make DenseMap's insert return a pair, to more closely resemble std::map.Dan Gohman2008-07-077-27/+39
| | | | llvm-svn: 53177
* Removed ImmutableMap::SlimFind and replaced it with ImmutableMap::lookup. ↵Ted Kremenek2008-07-071-5/+3
| | | | | | The new method does the same thing, except that it returns a pointer to the mapped data type, and not to an internal tree node. llvm-svn: 53171
* LegalizeSetCCOperands should legalize the result of ExpandLibCall. Patch by ↵Evan Cheng2008-07-071-1/+1
| | | | | | Richard Osborne. llvm-svn: 53169
* Handle 'lshr' instruction with SCEVUDiv object.Nick Lewycky2008-07-071-2/+14
| | | | | | Comment the xor %x, -1 case. llvm-svn: 53167
* Prevent option name conflict.Bill Wendling2008-07-071-1/+1
| | | | llvm-svn: 53166
* LegalizeTypes soft-float support for stores of aDuncan Sands2008-07-073-2/+24
| | | | | | float value. llvm-svn: 53165
* Add convenient helper for checking whether global is weak in linker senseAnton Korobeynikov2008-07-052-26/+20
| | | | | | having weak or linkonce or common or extweak LLVM linkage. llvm-svn: 53158
* Testcase for PR2463Anton Korobeynikov2008-07-052-0/+32
| | | | llvm-svn: 53157
* Override weak stuff during linking of aliases. This fixes PR2463.Anton Korobeynikov2008-07-051-8/+21
| | | | llvm-svn: 53156
* Testcase for PR2146Anton Korobeynikov2008-07-052-0/+27
| | | | llvm-svn: 53155
* Properly link alias and function decls. This fixes PR2146Anton Korobeynikov2008-07-051-8/+27
| | | | llvm-svn: 53154
* 80colNick Lewycky2008-07-051-1/+1
| | | | llvm-svn: 53153
* Fix missed optimization opportunity when analyzing cast of mul and select.Nick Lewycky2008-07-052-9/+43
| | | | llvm-svn: 53151
* Fixed generating incorrect aligned stores that I backout of r53031Mon P Wang2008-07-053-15/+23
| | | | | | | | that fixed problems in EmitStackConvert where the source and target type have different alignment by creating a stack slot with the max alignment of source and target type. llvm-svn: 53150
* Several changes to Mips backend, experimental fp support being the mostBruno Cardoso Lopes2008-07-0517-443/+1247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | important. - Cleanup in the Subtarget info with addition of new features, not all support yet, but they allow the future inclusion of features easier. Among new features, we have : Arch family info (mips1, mips2, ...), ABI info (o32, eabi), 64-bit integer and float registers, allegrex vector FPU (VFPU), single float only support. - TargetMachine now detects allegrex core. - Added allegrex (Mips32r2) sext_inreg instructions. - *Added Float Point Instructions*, handling single float only, and aliased accesses for 32-bit FPUs. - Some cleanup in FP instruction formats and FP register classes. - Calling conventions improved to support mips 32-bit EABI. - Added Asm Printer support for fp cond codes. - Added support for sret copy to a return register. - EABI support added into LowerCALL and FORMAL_ARGS. - MipsFunctionInfo now keeps a virtual register per function to track the sret on function entry until function ret. - MipsInstrInfo FP support into methods (isMoveInstr, isLoadFromStackSlot, ...), FP cond codes mapping and initial FP Branch Analysis. - Two new Mips SDNode to handle fp branch and compare instructions : FPBrcond, FPCmp - MipsTargetLowering : handling different FP classes, Allegrex support, sret return copy, no homing location within EABI, non 32-bit stack objects arguments, and asm constraint for float. llvm-svn: 53146
* Rather than having a different custom legalizationDuncan Sands2008-07-0414-166/+140
| | | | | | | | | | | | hook for each way in which a result type can be legalized (promotion, expansion, softening etc), just use one: ReplaceNodeResults, which returns a node with exactly the same result types as the node passed to it, but presumably with a bunch of custom code behind the scenes. No change if the new LegalizeTypes infrastructure is not turned on. llvm-svn: 53137
* Linux also does not require exception handlingDuncan Sands2008-07-045-14/+1
| | | | | | | | | moves in order to get correct debug info. Since I can't imagine how any target could possibly be any different, I've just stripped out the option: now all the world's like Darwin! llvm-svn: 53134
* Don't return std::vector by value, but pass it in by reference to be filled.Bill Wendling2008-07-033-24/+21
| | | | llvm-svn: 53123
* Revert my previous check-in that split up MachineModuleInfo. It turns out toBill Wendling2008-07-038-1370/+1522
| | | | | | slow the compiler down at -O0 some 30% or more. Ooops. llvm-svn: 53120
* Provide a hook to set the code generation debug options to investigate lto ↵Devang Patel2008-07-034-2/+29
| | | | | | failures. llvm-svn: 53119
* Backed out 53031.Evan Cheng2008-07-033-22/+14
| | | | llvm-svn: 53110
* Back out 53091 for now.Evan Cheng2008-07-031-2/+1
| | | | llvm-svn: 53109
* Use information already present in the ValueTable to fast-fail when we know ↵Owen Anderson2008-07-031-2/+11
| | | | | | there won't be a value number match. This speeds up GVN on a case where there are very few redundancies by ~25%. llvm-svn: 53108
* Do not try to update dominator info while manipulating CFG. This code does ↵Devang Patel2008-07-031-281/+19
| | | | | | | | not handle all cases and keeps invalid dom info around some cases, which misleads other passes down stream. Right now, dom info is recaluclated in the end if the loop is switched. llvm-svn: 53106
* Remove the ability for ADCE to remove unreachable blocks in loop nests, ↵Owen Anderson2008-07-032-75/+0
| | | | | | because, as Eli pointed out, SimplifyCFG already does this. llvm-svn: 53104
* - Remove calls to copyKillDeadInfo which is an N^2 function. Instead, ↵Evan Cheng2008-07-0316-260/+225
| | | | | | | | propagate kill / dead markers as new instructions are constructed in foldMemoryOperand, convertToThressAddress, etc. - Also remove LiveVariables::instructionChanged, etc. Replace all calls with cheaper calls which update VarInfo kill list. llvm-svn: 53097
* isel load folding is disabled at -fast. Now hoist the check up to the top ↵Evan Cheng2008-07-031-8/+27
| | | | | | level to save some time. llvm-svn: 53096
* Add newline at the end of Constants.cpp.Matthijs Kooijman2008-07-031-1/+1
| | | | llvm-svn: 53092
* llvm-gcc sometimes marks external declarations hidden, because intializers areAnton Korobeynikov2008-07-031-1/+2
| | | | | | | processed separately. Honour such situation and emit PIC relocations properly in such case. llvm-svn: 53091
* Remove unused function.Bill Wendling2008-07-031-16/+0
| | | | llvm-svn: 53090
* Preserve dom info.Devang Patel2008-07-031-0/+15
| | | | llvm-svn: 53089
* Keep track of inherited analysis (e.g. dominator tree).Devang Patel2008-07-031-0/+3
| | | | llvm-svn: 53088
* Remove extra FIXMEDevang Patel2008-07-031-1/+0
| | | | llvm-svn: 53087
* Reconstruct dom info, if loop is unswitched.Devang Patel2008-07-031-4/+9
| | | | llvm-svn: 53086
* LoopUnswitch does not preserve dominator info in all cases.Devang Patel2008-07-031-2/+3
| | | | llvm-svn: 53085
* Reapply r52988, "Simplify addRegisterKilled and addRegisterDead." TheDan Gohman2008-07-031-18/+18
| | | | | | 254.gap failure was not due to this mod. llvm-svn: 53068
* Use operator new instead of new char[].Dan Gohman2008-07-031-9/+9
| | | | llvm-svn: 53067
* Use operator new instead of new char[].Dan Gohman2008-07-031-5/+5
| | | | llvm-svn: 53066
* Avoid unnecessarily copying APInt objects.Dan Gohman2008-07-031-3/+3
| | | | llvm-svn: 53065
* Correct a comment.Dan Gohman2008-07-031-1/+1
| | | | llvm-svn: 53064
* Use std::replace instead of std::find and push_back.Evan Cheng2008-07-031-2/+1
| | | | llvm-svn: 53063
* Undo previous patch. It is not that simple to fix dom info here.Devang Patel2008-07-031-16/+2
| | | | llvm-svn: 53062
* - Add LiveVariables::replaceKillInstruction. This does a subset of ↵Evan Cheng2008-07-033-3/+16
| | | | | | | | instructionChanged. That is, it only update the VarInfo.kills if the new instruction is known to have the correct dead and kill markers. - CommuteInstruction copies kill / dead markers over to new instruction. So use replaceKillInstruction instead. llvm-svn: 53061
* commuteInstruction should preserve dead markers.Evan Cheng2008-07-031-1/+3
| | | | llvm-svn: 53060
* Make LiveVariables even more optional, by making it optional in the call to ↵Owen Anderson2008-07-026-71/+31
| | | | | | | | TargetInstrInfo::convertToThreeAddressInstruction Also, if LV isn't around, then TwoAddr doesn't need to be updating flags, since they won't have been set in the first place. llvm-svn: 53058
OpenPOWER on IntegriCloud