summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo compounded by a cut-and-pasto.Duncan Sands2008-07-021-4/+4
| | | | llvm-svn: 53012
* Let AnalyzeNewNode take care of calling ExpungeNode.Duncan Sands2008-07-022-86/+79
| | | | | | | This makes sure that all new nodes are expunged, not just those the top node of a new subtree. llvm-svn: 53011
* - Use a faster priority comparison function if -fast.Evan Cheng2008-07-022-228/+304
| | | | | | - Code clean up. llvm-svn: 53010
* Add a new (simple) StringMap::clear method, patch by PratikChris Lattner2008-07-021-4/+1
| | | | | | Solanki! llvm-svn: 53008
* reuse vectors.Devang Patel2008-07-021-5/+9
| | | | llvm-svn: 53007
* Fix comment.Devang Patel2008-07-021-1/+1
| | | | llvm-svn: 53006
* Preserve loop data so that it is not fetched everytime it is needed.Devang Patel2008-07-021-69/+85
| | | | | | Keep track of currentLoop. llvm-svn: 53005
* Use the canonical form for getting an empty structure.Bill Wendling2008-07-021-10/+5
| | | | llvm-svn: 53003
* Sorry. I couldn't sleep at night knowing I put these ugly casts into the ↵Bill Wendling2008-07-022-6/+5
| | | | | | source tree. llvm-svn: 53001
* Add a version of AddString that takes a const char* so we can avoid extraneousOwen Anderson2008-07-011-0/+38
| | | | | | conversions to std::string. llvm-svn: 52995
* Darwin doesn't need exception handling information for the "move" info whenBill Wendling2008-07-014-2/+5
| | | | | | debug information is being output, because it's leet! llvm-svn: 52994
* Avoid creating expensive comment string if it's not going to be printed.Evan Cheng2008-07-013-25/+38
| | | | llvm-svn: 52992
* No need to use std::distance. We can just count the number of operandsOwen Anderson2008-07-011-1/+4
| | | | | | much more cheaply. llvm-svn: 52990
* Simplify addRegisterKilled and addRegisterDead.Evan Cheng2008-07-011-18/+18
| | | | llvm-svn: 52988
* - Update comments. Bill Wendling2008-07-012-36/+25
| | | | | | - Don't use GlobalVariable::LinkageTypes when unsigned works. llvm-svn: 52987
* Fix longstanding thinko: don't excludeDale Johannesen2008-07-011-2/+1
| | | | | | | predessors of exit blocks from tail merging consideration. llvm-svn: 52985
* Disable dom info verifier by default.Devang Patel2008-07-011-1/+1
| | | | llvm-svn: 52983
* Eliminate a compile time warning.Evan Cheng2008-07-011-1/+1
| | | | llvm-svn: 52982
* Add a version of AsmPrinter::EOL that takes a const char* so that we don't ↵Owen Anderson2008-07-011-0/+11
| | | | | | | | have to do as many implicit std::string constructions. Unfortunately, this doesn't appear to translate to a real speedup in practice. llvm-svn: 52981
* Remove warning about initialization order.Bill Wendling2008-07-011-2/+2
| | | | llvm-svn: 52980
* Fix typos in comments. Devang Patel2008-07-012-6/+6
| | | | | | Thanks for the feedback! llvm-svn: 52978
* Prune a few dependencies on MachineFunction.h.Dan Gohman2008-07-012-1/+1
| | | | llvm-svn: 52976
* Do run ComputeLiveOutVRegInfo with -fast.Evan Cheng2008-07-011-1/+1
| | | | llvm-svn: 52975
* Do not use computationally expensive scheduling heuristics with -fast.Evan Cheng2008-07-014-56/+61
| | | | llvm-svn: 52971
* Apply Chris' suggestion.Evan Cheng2008-07-011-32/+36
| | | | llvm-svn: 52970
* Add dom info verifier.Devang Patel2008-07-012-1/+54
| | | | llvm-svn: 52967
* Make the subregister hashtable output more readable by wrapping the lines,Owen Anderson2008-07-011-2/+4
| | | | | | and mark it const along with the associated changes to TargetRegisterInfo. llvm-svn: 52966
* Highlight that getMergeValues optimization isDuncan Sands2008-07-011-1/+2
| | | | | | being suppressed here. llvm-svn: 52952
* Properly handle cases where a predecessor of the block being queried on is ↵Owen Anderson2008-07-011-0/+13
| | | | | | | | unreachable. This fixes PR2503, though we should also fix other passes not to emit this kind of code. llvm-svn: 52946
* Replace the dynamically computed std::set lookup method for subregisters ↵Owen Anderson2008-07-011-10/+0
| | | | | | | | with a hashtable-based version that is computed by tblgen at the time LLVM is compiled. llvm-svn: 52945
* Minimize duplicated code in AsmPrinter::printLabel.Dan Gohman2008-07-011-2/+1
| | | | llvm-svn: 52944
* Split ISD::LABEL into ISD::DBG_LABEL and ISD::EH_LABEL, eliminatingDan Gohman2008-07-0126-71/+119
| | | | | | | | | | | | | | | | the need for a flavor operand, and add a new SDNode subclass, LabelSDNode, for use with them to eliminate the need for a label id operand. Change instruction selection to let these label nodes through unmodified instead of creating copies of them. Teach the MachineInstr emitter how to emit a MachineInstr directly from an ISD label node. This avoids the need for allocating SDNodes for the label id and flavor value, as well as SDNodes for each of the post-isel label, label id, and label flavor. llvm-svn: 52943
* Suppress compiler warning.Evan Cheng2008-06-301-1/+1
| | | | llvm-svn: 52934
* Don't run stack slot coloring if -fast.Evan Cheng2008-06-301-2/+4
| | | | llvm-svn: 52933
* Don't use ISD namespace opcodes for MachineInstrs.Dan Gohman2008-06-301-2/+2
| | | | llvm-svn: 52932
* Use a simpler but equivalent form of RecordSource.Dan Gohman2008-06-301-2/+1
| | | | llvm-svn: 52931
* Add timing report for various sub-passes under SelectionDAGISel.Evan Cheng2008-06-301-0/+26
| | | | llvm-svn: 52930
* std::ostream and std::string microoptimizations for asm printing.Dan Gohman2008-06-302-137/+137
| | | | llvm-svn: 52929
* Use reserve.Dan Gohman2008-06-301-0/+1
| | | | | | | | | | SelectionDAG::allnodes_size is linear, but that doesn't appear to outweigh the benefit of reducing heap traffic. If it does become a problem, we should teach SelectionDAG to keep a count of how many nodes are live, because there are several other places where that information would be useful as well. llvm-svn: 52926
* Update comments to new-style syntax.Dan Gohman2008-06-301-3/+3
| | | | llvm-svn: 52925
* Rename ISD::LOCATION to ISD::DBG_STOPPOINT to better reflect itsDan Gohman2008-06-3013-55/+58
| | | | | | | | | | | | | | | | | purpose, and give it a custom SDNode subclass so that it doesn't need to have line number, column number, filename string, and directory string, all existing as individual SDNodes to be the operands. This was the only user of ISD::STRING, StringSDNode, etc., so remove those and some associated code. This makes stop-points considerably easier to read in -view-legalize-dags output, and reduces overhead (creating new nodes and copying std::strings into them) on code containing debugging information. llvm-svn: 52924
* Split scheduling from instruction selection.Evan Cheng2008-06-3010-65/+55
| | | | llvm-svn: 52923
* No need to align the stack if there are no stackDale Johannesen2008-06-301-1/+2
| | | | | | objects. Fixes a couple of tests on Linux. llvm-svn: 52921
* Remove unneeded include.Evan Cheng2008-06-301-1/+0
| | | | llvm-svn: 52920
* Replace some std::vectors that showed up in heap profiling withDan Gohman2008-06-305-24/+18
| | | | | | | | SmallVectors. Change the signature of TargetLowering::LowerArguments to avoid returning a vector by value, and update the two targets which still use this directly, Sparc and IA64, accordingly. llvm-svn: 52917
* Correct the allocation size for CCState's UsedRegs member, whichDan Gohman2008-06-301-1/+1
| | | | | | | | only needs one bit for each register. UsedRegs is a SmallVector sized at 16, so this eliminates a heap allocation/free for every call and return processed by Legalize on most targets. llvm-svn: 52915
* Move dominator info printer into tool/opt/GraphPrinters.cppDevang Patel2008-06-301-30/+0
| | | | llvm-svn: 52907
* ExpungeNode is only needed for new nodes! ThisDuncan Sands2008-06-301-9/+12
| | | | | | | fixes CodeGen/PowerPC/2008-06-19-LegalizerCrash.ll when using the new LegalizeTypes infrastructure. llvm-svn: 52903
* Support for VAARG. As noted in a comment, this isDuncan Sands2008-06-302-0/+33
| | | | | | | wrong for types like x86 long double and i1, but no worse than what is done in LegalizeDAG. llvm-svn: 52898
* Support for promoting select_cc operands.Duncan Sands2008-06-302-3/+16
| | | | llvm-svn: 52895
OpenPOWER on IntegriCloud