We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0313be commit bfd7709Copy full SHA for bfd7709
llvm/lib/Transforms/Scalar/SROA.cpp
@@ -2176,6 +2176,10 @@ static bool isIntegerWideningViableForSlice(const Slice &S,
2176
return false;
2177
if (!S.isSplittable())
2178
return false; // Skip any unsplittable intrinsics.
2179
+ uint64_t SliceBits = (RelEnd - RelBegin) * 8;
2180
+ // CHEERP: disallow weird integer sizes like i24 from being created
2181
+ if (!DL.isByteAddressable() && !DL.isLegalInteger(SliceBits))
2182
+ return false;
2183
} else {
2184
2185
}
0 commit comments