[clang] [Arm] Fix generating code with UB in NeonEmitter (PR #121802)
Momchil Velikov via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 14 07:23:55 PST 2025
================
@@ -1382,14 +1382,15 @@ void Intrinsic::emitBodyAsBuiltinCall() {
Type CastToType = T;
// Check if an explicit cast is needed.
- if (CastToType.isVector() &&
- (LocalCK == ClassB || (T.isHalf() && !T.isScalarForMangling()))) {
- CastToType.makeInteger(8, true);
- Arg = "(" + CastToType.str() + ")" + Arg;
- } else if (CastToType.isVector() && LocalCK == ClassI) {
- if (CastToType.isInteger())
- CastToType.makeSigned();
- Arg = "(" + CastToType.str() + ")" + Arg;
+ if (CastToType.isVector()) {
----------------
momchil-velikov wrote:
This change is postponed for another time.
https://github.com/llvm/llvm-project/pull/121802
More information about the cfe-commits
mailing list