If TargetSelectInstruction returns true, move to next instruction.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 3 Sep 2008 06:43:41 +0000 (06:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 3 Sep 2008 06:43:41 +0000 (06:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55692 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index f0afdae866be429cd62114f96bed00704e489944..f242094baf756c59ed788df8ac0eb3609b53d916 100644 (file)
@@ -5763,8 +5763,10 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF) {
 
           // 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) ||