Skip to content

Commit cca0e2d

Browse files
committed
address pr feedback
1 parent 45dbfb1 commit cca0e2d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ static bool expandTypedBufferStoreIntrinsic(CallInst *Orig) {
656656
Type *ResultTy = VectorType::get(Int32Ty, IsVector ? 4 : 2, false);
657657
Value *Val = PoisonValue::get(ResultTy);
658658

659-
// Handle double type(s)
660659
Type *SplitElementTy = Int32Ty;
661660
if (IsVector)
662661
SplitElementTy = VectorType::get(SplitElementTy, 2, false);
@@ -684,10 +683,8 @@ static bool expandTypedBufferStoreIntrinsic(CallInst *Orig) {
684683
}
685684

686685
if (IsVector) {
687-
// For vector doubles, use shuffle to create the final vector
688686
Val = Builder.CreateShuffleVector(LowBits, HighBits, {0, 2, 1, 3});
689687
} else {
690-
// For scalar doubles, insert the elements
691688
Val = Builder.CreateInsertElement(Val, LowBits, Builder.getInt32(0));
692689
Val = Builder.CreateInsertElement(Val, HighBits, Builder.getInt32(1));
693690
}

0 commit comments

Comments
 (0)