- Mar 11, 2012
-
-
Benjamin Kramer authored
DwarfDebug: Store the filename/dirname pair as a zero-separated string in a stringmap, instead of using a highly inefficient std::map of a pair of std::strings. llvm-svn: 152541
-
Stepan Dyatkovskiy authored
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default. Added some notes relative to case iterators. llvm-svn: 152532
-
- Mar 10, 2012
-
-
Benjamin Kramer authored
llvm-svn: 152492
-
Bill Wendling authored
The old way of determine when and where to spill a value that was used inside of a landing pad resulted in spilling that value everywhere and not just at the invoke edge. This algorithm determines which values are used within a landing pad. It then spills those values before the invoke and reloads them before the uses. This should prevent excessive spilling in many cases, e.g. inside of loops. <rdar://problem/10609139> llvm-svn: 152486
-
Jakob Stoklund Olesen authored
llvm-svn: 152460
-
Jakob Stoklund Olesen authored
Somehow we never verified SSA dominance before. llvm-svn: 152458
-
Jakob Stoklund Olesen authored
llvm-svn: 152457
-
Benjamin Kramer authored
llvm-svn: 152454
-
Jakob Stoklund Olesen authored
All uses of a virtual register must be dominated by its def. llvm-svn: 152449
-
- Mar 09, 2012
-
-
Andrew Trick authored
And add comments, since this is obviously confusing. llvm-svn: 152445
-
Andrew Trick authored
llvm-svn: 152393
-
Andrew Trick authored
llvm-svn: 152382
-
Andrew Trick authored
llvm-svn: 152374
-
Andrew Trick authored
llvm-svn: 152373
-
Andrew Trick authored
llvm-svn: 152360
-
Evan Cheng authored
llvm-svn: 152356
-
- Mar 08, 2012
-
-
Craig Topper authored
llvm-svn: 152301
-
Stepan Dyatkovskiy authored
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120130/136146.html Implemented CaseIterator and it solves almost all described issues: we don't need to mix operand/case/successor indexing anymore. Base iterator class is implemented as a template since it may be initialized either from "const SwitchInst*" or from "SwitchInst*". ConstCaseIt is just a read-only iterator. CaseIt is read-write iterator; it allows to change case successor and case value. Usage of iterator allows totally remove resolveXXXX methods. All indexing convertions done automatically inside the iterator's getters. Main way of iterator usage looks like this: SwitchInst *SI = ... // intialize it somehow for (SwitchInst::CaseIt i = SI->caseBegin(), e = SI->caseEnd(); i != e; ++i) { BasicBlock *BB = i.getCaseSuccessor(); ConstantInt *V = i.getCaseValue(); // Do something. } If you want to convert case number to TerminatorInst successor index, just use getSuccessorIndex iterator's method. If you want initialize iterator from TerminatorInst successor index, use CaseIt::fromSuccessorIndex(...) method. There are also related changes in llvm-clients: klee and clang. llvm-svn: 152297
-
Andrew Trick authored
Allow targets to provide their own schedulers (subclass of ScheduleDAGInstrs) to the misched pass. Select schedulers using -misched=... llvm-svn: 152278
-
Andrew Trick authored
llvm-svn: 152262
-
Andrew Trick authored
implement their own MachineScheduler. llvm-svn: 152261
-
Andrew Trick authored
llvm-svn: 152260
-
Andrew Trick authored
llvm-svn: 152259
-
Andrew Trick authored
ScheduleDAGInstrs will be the main interface for MI-level schedulers. Make sure it's readable: one page of protected fields, one page of public methids. llvm-svn: 152258
-
Andrew Trick authored
llvm-svn: 152257
-
Andrew Trick authored
ScheduleDAGInstrs knows nothing about how instructions will be moved or inserted. llvm-svn: 152256
-
Andrew Trick authored
We had half the API with one convention, half with another. Now was a good time to clean it up. llvm-svn: 152255
-
- Mar 07, 2012
-
-
Chandler Carruth authored
llvm-svn: 152221
-
Chandler Carruth authored
This one is particularly annoying because the hashing algorithm is highly specialized, with a strange "equivalence" definition that subsets the fields involved. Still, this looks at the exact same set of data as the old code, but without bitwise or-ing over parts of it and other mixing badness. No functionality changed here. I've left a substantial fixme about the fact that there is a cleaner and more principled way to do this, but it requires making the equality definition actual stable for particular types... llvm-svn: 152218
-
Bill Wendling authored
the DebugLoc information can be maintained throughout by grabbing the DebugLoc before the RemoveBranch and then passing the result to the InsertBranch. Patch by Andrew Stanford-Jason! llvm-svn: 152212
-
Andrew Trick authored
llvm-svn: 152210
-
Andrew Trick authored
llvm-svn: 152209
-
Andrew Trick authored
ScheduleDAG is responsible for the DAG: SUnits and SDeps. It provides target hooks for latency computation. ScheduleDAGInstrs extends ScheduleDAG and defines the current scheduling region in terms of MachineInstr iterators. It has access to the target's scheduling itinerary data. ScheduleDAGInstrs provides the logic for building the ScheduleDAG for the sequence of MachineInstrs in the current region. Target's can implement highly custom schedulers by extending this class. ScheduleDAGPostRATDList provides the driver and diagnostics for current postRA scheduling. It maintains a current Sequence of scheduled machine instructions and logic for splicing them into the block. During scheduling, it uses the ScheduleHazardRecognizer provided by the target. Specific changes: - Removed driver code from ScheduleDAG. clearDAG is the only interface needed. - Added enterRegion/exitRegion hooks to ScheduleDAGInstrs to delimit the scope of each scheduling region and associated DAG. They should be used to setup and cleanup any region-specific state in addition to the DAG itself. This is necessary because we reuse the same ScheduleDAG object for the entire function. The target may extend these hooks to do things at regions boundaries, like bundle terminators. The hooks are called even if we decide not to schedule the region. So all instructions in a block are "covered" by these calls. - Added ScheduleDAGInstrs::begin()/end() public API. - Moved Sequence into the driver layer, which is specific to the scheduling algorithm. llvm-svn: 152208
-
Andrew Trick authored
llvm-svn: 152207
-
Andrew Trick authored
ScheduleDAG has nothing to do with how the instructions are scheduled. llvm-svn: 152206
-
Andrew Trick authored
ScheduleDAG will not refer to the scheduled instruction sequence. llvm-svn: 152205
-
Andrew Trick authored
ScheduleDAG will not refer to the scheduled instruction sequence. llvm-svn: 152204
-
Andrew Trick authored
llvm-svn: 152203
-
Andrew Trick authored
llvm-svn: 152178
-
Andrew Trick authored
Soon, ScheduleDAG will not refer to the BB. llvm-svn: 152177
-