Add comment re byval args. Doesn't actually work this way yet.
authorDale Johannesen <dalej@apple.com>
Sun, 25 Apr 2010 21:03:54 +0000 (21:03 +0000)
committerDale Johannesen <dalej@apple.com>
Sun, 25 Apr 2010 21:03:54 +0000 (21:03 +0000)
xs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102316 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index c40eaf629289d86b5ae8dd7f86694c1577caab6e..8aa37a06dc2f3e403d0d418fff1e60ecd0e7da08 100644 (file)
@@ -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));