diff --git a/sycl/source/detail/scheduler/graph_builder.cpp b/sycl/source/detail/scheduler/graph_builder.cpp index 7d40ea089f575..d112de043a99a 100644 --- a/sycl/source/detail/scheduler/graph_builder.cpp +++ b/sycl/source/detail/scheduler/graph_builder.cpp @@ -505,8 +505,6 @@ AllocaCommandBase *Scheduler::GraphBuilder::getOrCreateAllocaForReq( auto *ParentAlloca = getOrCreateAllocaForReq(Record, &ParentRequirement, Queue); AllocaCmd = new AllocaSubBufCommand(Queue, *Req, ParentAlloca); - updateLeaves(findDepsForReq(Record, Req, Queue->getContextImplPtr()), - Record, access::mode::read_write); } else { const Requirement FullReq(/*Offset*/ {0, 0, 0}, Req->MMemoryRange,