mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 01:51:31 +00:00
Fix FastISel to recognize unhandled operands, such as constants
that aren't available as virtual registers (for now). llvm-svn: 55026
This commit is contained in:
parent
63d8801e51
commit
f298c31918
@ -25,6 +25,10 @@ bool FastISel::SelectBinaryOp(Instruction *I, ISD::NodeType ISDOpcode,
|
||||
DenseMap<const Value*, unsigned> &ValueMap) {
|
||||
unsigned Op0 = ValueMap[I->getOperand(0)];
|
||||
unsigned Op1 = ValueMap[I->getOperand(1)];
|
||||
if (Op0 == 0 || Op1 == 0)
|
||||
// Unhandled operand. Halt "fast" selection and bail.
|
||||
return false;
|
||||
|
||||
MVT VT = MVT::getMVT(I->getType(), /*HandleUnknown=*/true);
|
||||
if (VT == MVT::Other || !VT.isSimple())
|
||||
// Unhandled type. Halt "fast" selection and bail.
|
||||
|
Loading…
Reference in New Issue
Block a user