Skip to content

Commit b0c029e

Browse files
jeffnnJeff Noyle
andauthored
Don't instrument that! (#3176)
Co-authored-by: Jeff Noyle <[email protected]>
1 parent 7b5d547 commit b0c029e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lib/DxilPIXPasses/DxilDebugInstrumentation.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,18 @@ void DxilDebugInstrumentation::addStepDebugEntry(BuilderContext &BC,
833833
return;
834834
}
835835

836+
if (Inst->getOpcode() == Instruction::OtherOps::Call) {
837+
if (Inst->getNumOperands() > 0) {
838+
if (auto *asInt =
839+
llvm::cast_or_null<llvm::ConstantInt>(Inst->getOperand(0))) {
840+
if (asInt->getZExtValue() == (uint64_t)DXIL::OpCode::AllocateRayQuery) {
841+
// Ray query handles should not be stored in the debug trace UAV
842+
return;
843+
}
844+
}
845+
}
846+
}
847+
836848
if (auto *St = llvm::dyn_cast<llvm::StoreInst>(Inst)) {
837849
addStoreStepDebugEntry(BC, St);
838850
return;

0 commit comments

Comments
 (0)