mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Handle the case where target-specific fastisel code doesn't have
a desired opcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
379cad44ec
commit
32155acb8a
@ -33,6 +33,11 @@ FastISel::SelectInstructions(BasicBlock::iterator Begin, BasicBlock::iterator En
|
||||
return I;
|
||||
}
|
||||
unsigned ResultReg = FastEmit_rr(VT.getSimpleVT(), ISD::ADD, Op0, Op1);
|
||||
if (ResultReg == 0) {
|
||||
// Target-specific code wasn't able to find a machine opcode for
|
||||
// the given ISD opcode and type. Halt "fast" selection and bail.
|
||||
return I;
|
||||
}
|
||||
ValueMap[I] = ResultReg;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user