diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-04-25 21:03:54 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-04-25 21:03:54 +0000 |
| commit | 1fc01985a3ad97ca48a3b130bb3da619e16d2634 (patch) | |
| tree | a6e5cf6e928ca01ee0448693ec8767a899a89cd3 /llvm/lib/CodeGen | |
| parent | 861eb80a3b9d83c81a0a9ab963eff929bb4a25fa (diff) | |
| download | bcm5719-llvm-1fc01985a3ad97ca48a3b130bb3da619e16d2634.tar.gz bcm5719-llvm-1fc01985a3ad97ca48a3b130bb3da619e16d2634.zip | |
Add comment re byval args. Doesn't actually work this way yet.
xs
llvm-svn: 102316
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index c40eaf62928..8aa37a06dc2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -340,6 +340,8 @@ bool FastISel::SelectCall(const User *I) { return true; const AllocaInst *AI = dyn_cast<AllocaInst>(Address); // Don't handle byval struct arguments or VLAs, for example. + // Note that if we have a byval struct argument, fast ISel is turned off; + // those are handled in SelectionDAGBuilder. if (!AI) break; DenseMap<const AllocaInst*, int>::iterator SI = StaticAllocaMap.find(AI); @@ -347,7 +349,7 @@ bool FastISel::SelectCall(const User *I) { int FI = SI->second; if (!DI->getDebugLoc().isUnknown()) MF.getMMI().setVariableDbgInfo(DI->getVariable(), FI, DI->getDebugLoc()); - + // Building the map above is target independent. Generating DBG_VALUE // inline is target dependent; do this now. (void)TargetSelectInstruction(cast<Instruction>(I)); |

