[llvm-commits] [llvm] r55692 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Evan Cheng evan.cheng at apple.com
Tue Sep 2 23:43:41 PDT 2008


Author: evancheng
Date: Wed Sep  3 01:43:41 2008
New Revision: 55692

URL: http://llvm.org/viewvc/llvm-project?rev=55692&view=rev
Log:
If TargetSelectInstruction returns true, move to next instruction.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=55692&r1=55691&r2=55692&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Sep  3 01:43:41 2008
@@ -5763,8 +5763,10 @@
 
           // Next, try calling the target to attempt to handle the instruction.
           if (F->TargetSelectInstruction(Begin, FuncInfo->ValueMap,
-                                         FuncInfo->MBBMap, BB))
+                                         FuncInfo->MBBMap, BB)) {
+            ++Begin;
             continue;
+          }
 
           // Handle certain instructions as single-LLVM-Instruction blocks.
           if (isa<CallInst>(Begin) || isa<LoadInst>(Begin) ||





More information about the llvm-commits mailing list