File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,8 @@ void legalizeBinaryOp(IRInst* inst)
67
67
if (inst->getOp () == kIROp_Lsh || inst->getOp () == kIROp_Rsh )
68
68
{
69
69
auto vectorType = as<IRVectorType>(compositeType);
70
- compositeType = builder.getVectorType (
71
- scalarValue->getDataType (),
72
- vectorType->getElementCount ());
70
+ compositeType =
71
+ builder.getVectorType (scalarValue->getDataType (), vectorType->getElementCount ());
73
72
}
74
73
auto newRhs = builder.emitMakeCompositeFromScalar (compositeType, scalarValue);
75
74
builder.replaceOperand (inst->getOperands () + 1 , newRhs);
@@ -86,9 +85,8 @@ void legalizeBinaryOp(IRInst* inst)
86
85
if (inst->getOp () == kIROp_Lsh || inst->getOp () == kIROp_Rsh )
87
86
{
88
87
auto vectorType = as<IRVectorType>(compositeType);
89
- compositeType = builder.getVectorType (
90
- scalarValue->getDataType (),
91
- vectorType->getElementCount ());
88
+ compositeType =
89
+ builder.getVectorType (scalarValue->getDataType (), vectorType->getElementCount ());
92
90
}
93
91
auto newLhs = builder.emitMakeCompositeFromScalar (compositeType, scalarValue);
94
92
builder.replaceOperand (inst->getOperands (), newLhs);
You can’t perform that action at this time.
0 commit comments