@@ -69,7 +69,6 @@ multiclass RVVVLEFFBuiltin<list<string> types> {
69
69
Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
70
70
IntrinsicTypes = {ResultType, Ops[3]->getType()};
71
71
}
72
- Ops[1] = Builder.CreateBitCast(Ops[1], ResultType->getPointerTo());
73
72
Value *NewVL = Ops[2];
74
73
Ops.erase(Ops.begin() + 2);
75
74
llvm::Function *F = CGM.getIntrinsic(ID, IntrinsicTypes);
@@ -150,7 +149,6 @@ let HasMaskedOffOperand = false,
150
149
// Builtin: (ptr, value, vl). Intrinsic: (value, ptr, vl)
151
150
std::swap(Ops[0], Ops[1]);
152
151
}
153
- Ops[1] = Builder.CreateBitCast(Ops[1], Ops[0]->getType()->getPointerTo());
154
152
if (IsMasked)
155
153
IntrinsicTypes = {Ops[0]->getType(), Ops[3]->getType()};
156
154
else
@@ -189,7 +187,6 @@ multiclass RVVVSSEBuiltin<list<string> types> {
189
187
// Builtin: (ptr, stride, value, vl). Intrinsic: (value, ptr, stride, vl)
190
188
std::rotate(Ops.begin(), Ops.begin() + 2, Ops.begin() + 3);
191
189
}
192
- Ops[1] = Builder.CreateBitCast(Ops[1], Ops[0]->getType()->getPointerTo());
193
190
if (IsMasked)
194
191
IntrinsicTypes = {Ops[0]->getType(), Ops[4]->getType()};
195
192
else
@@ -215,7 +212,6 @@ multiclass RVVIndexedStore<string op> {
215
212
// Builtin: (ptr, index, value, vl). Intrinsic: (value, ptr, index, vl)
216
213
std::rotate(Ops.begin(), Ops.begin() + 2, Ops.begin() + 3);
217
214
}
218
- Ops[1] = Builder.CreateBitCast(Ops[1], Ops[0]->getType()->getPointerTo());
219
215
if (IsMasked)
220
216
IntrinsicTypes = {Ops[0]->getType(), Ops[2]->getType(), Ops[4]->getType()};
221
217
else
0 commit comments