diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-03 06:43:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-03 06:43:41 +0000 |
commit | 31ddd09f4ad43088c3db47118377425d77e20001 (patch) | |
tree | 93bf30ae39ba7babc85e18e90307db67aa95773e /llvm/lib/CodeGen | |
parent | fa67546ef9a2db529b9441e4726011a8616f77ad (diff) | |
download | bcm5719-llvm-31ddd09f4ad43088c3db47118377425d77e20001.tar.gz bcm5719-llvm-31ddd09f4ad43088c3db47118377425d77e20001.zip |
If TargetSelectInstruction returns true, move to next instruction.
llvm-svn: 55692
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index f0afdae866b..f242094baf7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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) || |