forked from OSchip/llvm-project
parent
15984457a6
commit
149a020425
|
@ -135,8 +135,8 @@ bool CombinerHelper::matchCombineConcatVectors(MachineInstr &MI, bool &IsUndef,
|
||||||
Builder.setInsertPt(*MI.getParent(), MI);
|
Builder.setInsertPt(*MI.getParent(), MI);
|
||||||
Undef = Builder.buildUndef(OpType.getScalarType());
|
Undef = Builder.buildUndef(OpType.getScalarType());
|
||||||
}
|
}
|
||||||
LLT UndefType = MRI.getType(Undef->getOperand(0).getReg());
|
assert(MRI.getType(Undef->getOperand(0).getReg()) ==
|
||||||
assert(UndefType == OpType.getScalarType() &&
|
OpType.getScalarType() &&
|
||||||
"All undefs should have the same type");
|
"All undefs should have the same type");
|
||||||
// Break the undef vector in as many scalar elements as needed
|
// Break the undef vector in as many scalar elements as needed
|
||||||
// for the flattening.
|
// for the flattening.
|
||||||
|
|
Loading…
Reference in New Issue