Skip to content

Commit c6a3918

Browse files
chore: autopublish 2026-03-14T06:50:26Z
1 parent 1448249 commit c6a3918

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/Transforms/Scalar/SROA.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,8 @@ static Value *getNaturalGEPRecursively(IRBuilderTy &IRB, const DataLayout &DL,
16751675
// elements. DXC's data layout pads min precision types (i16:32, f16:32),
16761676
// so getTypeAllocSize matches the GEP offset stride while
16771677
// getTypeSizeInBits returns the unpadded primitive width.
1678-
unsigned ElementSizeInBits = DL.getTypeAllocSizeInBits(VecTy->getScalarType());
1678+
unsigned ElementSizeInBits =
1679+
DL.getTypeAllocSizeInBits(VecTy->getScalarType());
16791680
if (ElementSizeInBits % 8 != 0) {
16801681
// GEPs over non-multiple of 8 size vector elements are invalid.
16811682
return nullptr;
@@ -2497,7 +2498,8 @@ class AllocaSliceRewriter : public InstVisitor<AllocaSliceRewriter, bool> {
24972498
: nullptr),
24982499
VecTy(PromotableVecTy),
24992500
ElementTy(VecTy ? VecTy->getElementType() : nullptr),
2500-
// HLSL Change: Use alloc size to match GEP offset stride for padded types.
2501+
// HLSL Change: Use alloc size to match GEP offset stride for padded
2502+
// types.
25012503
ElementSize(VecTy ? DL.getTypeAllocSizeInBits(ElementTy) / 8 : 0),
25022504
BeginOffset(), EndOffset(), IsSplittable(), IsSplit(), OldUse(),
25032505
OldPtr(), PHIUsers(PHIUsers), SelectUsers(SelectUsers),

0 commit comments

Comments
 (0)