Skip to content

Commit 52b5413

Browse files
JaroszPiotrigcbot
authored andcommitted
Internal change
Internal change
1 parent e3b22db commit 52b5413

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

IGC/AdaptorCommon/RayTracing/DynamicRayManagementPass.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ bool DynamicRayManagementPass::TryProceedBasedApproach(Function& F)
567567
}
568568
}
569569

570+
570571
llvm::for_each(
571572
toErase,
572573
[&](auto* I) {
@@ -875,6 +876,7 @@ bool DynamicRayManagementPass::AddDynamicRayManagement(Function& F)
875876
// RayQueryCheck-Release pair identification.
876877
RayQueryReleaseIntrinsic* rayQueryRelease = builder.CreateRayQueryReleaseIntrinsic();
877878

879+
878880
// There is a possibility that the check is no longer post-dominated by the
879881
// release now (because release insertion logic changes the control flow).
880882
// If that's the case, iterate over descendants of the check and find a

IGC/AdaptorCommon/RayTracing/RTBuilder.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ RayQueryReleaseIntrinsic* RTBuilder::CreateRayQueryReleaseIntrinsic(Value* predi
196196
predicate = getTrue();
197197

198198
Value* rayQueryRelease = CreateCall(GenISAIntrinsic::getDeclaration(M, GenISAIntrinsic::GenISA_RayQueryRelease), predicate);
199-
200199
return cast<RayQueryReleaseIntrinsic>(rayQueryRelease);
201200
}
202201

IGC/AdaptorCommon/RayTracing/RTBuilder.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,12 @@ class RTBuilder : public IGCIRBuilder<>
391391

392392
Value* getGlobalDSSID();
393393

394+
Value* getSyncRTStackSize();
395+
394396
private:
395397
TraceRayIntrinsic* createTraceRay(Value* bvhLevel, Value* traceRayCtrl, bool isRayQuery, const Twine& PayloadName = "");
396398

397399
Value* canonizePointer(Value* Ptr);
398-
Value* getSyncRTStackSize();
399400
uint32_t getRTStack2Size() const;
400401
Value* getRTStackSize(uint32_t Align);
401402
SyncStackPointerVal* getSyncStackPointer(Value* syncStackOffset, RTBuilder::RTMemoryAccessMode Mode);

0 commit comments

Comments
 (0)