File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1033,16 +1033,14 @@ AMDGPUPromoteAllocaImpl::getLocalSizeYZ(IRBuilder<> &Builder) {
1033
1033
DispatchPtr->addDereferenceableRetAttr (64 );
1034
1034
1035
1035
Type *I32Ty = Type::getInt32Ty (Mod->getContext ());
1036
- Value *CastDispatchPtr = Builder.CreateBitCast (
1037
- DispatchPtr, PointerType::get (I32Ty, AMDGPUAS::CONSTANT_ADDRESS));
1038
1036
1039
1037
// We could do a single 64-bit load here, but it's likely that the basic
1040
1038
// 32-bit and extract sequence is already present, and it is probably easier
1041
1039
// to CSE this. The loads should be mergeable later anyway.
1042
- Value *GEPXY = Builder.CreateConstInBoundsGEP1_64 (I32Ty, CastDispatchPtr , 1 );
1040
+ Value *GEPXY = Builder.CreateConstInBoundsGEP1_64 (I32Ty, DispatchPtr , 1 );
1043
1041
LoadInst *LoadXY = Builder.CreateAlignedLoad (I32Ty, GEPXY, Align (4 ));
1044
1042
1045
- Value *GEPZU = Builder.CreateConstInBoundsGEP1_64 (I32Ty, CastDispatchPtr , 2 );
1043
+ Value *GEPZU = Builder.CreateConstInBoundsGEP1_64 (I32Ty, DispatchPtr , 2 );
1046
1044
LoadInst *LoadZU = Builder.CreateAlignedLoad (I32Ty, GEPZU, Align (4 ));
1047
1045
1048
1046
MDNode *MD = MDNode::get (Mod->getContext (), std::nullopt);
You can’t perform that action at this time.
0 commit comments