@@ -139,7 +139,7 @@ void propagatePartitionUp(std::shared_ptr<node_impl> Node, int PartitionNum) {
139
139
// / @param HostTaskList List of host tasks that have already been processed and
140
140
// / are encountered as successors to the node Node.
141
141
void propagatePartitionDown (
142
- std::shared_ptr<node_impl> Node, int PartitionNum,
142
+ const std::shared_ptr<node_impl> & Node, int PartitionNum,
143
143
std::list<std::shared_ptr<node_impl>> &HostTaskList) {
144
144
if (Node->MCGType == sycl::detail::CGType::CodeplayHostTask) {
145
145
if (Node->MPartitionNum != -1 ) {
@@ -753,7 +753,7 @@ std::vector<sycl::detail::EventImplPtr> graph_impl::getExitNodesEvents(
753
753
}
754
754
755
755
void graph_impl::beginRecording (
756
- std::shared_ptr<sycl::detail::queue_impl> Queue) {
756
+ const std::shared_ptr<sycl::detail::queue_impl> & Queue) {
757
757
graph_impl::WriteLock Lock (MMutex);
758
758
if (!Queue->hasCommandGraph ()) {
759
759
Queue->setCommandGraph (shared_from_this ());
@@ -1024,9 +1024,10 @@ exec_graph_impl::enqueue(const std::shared_ptr<sycl::detail::queue_impl> &Queue,
1024
1024
for (std::vector<sycl::detail::EventImplPtr>::iterator It =
1025
1025
MExecutionEvents.begin ();
1026
1026
It != MExecutionEvents.end ();) {
1027
- auto Event = *It;
1027
+ EventImplPtr & Event = *It;
1028
1028
if (!Event->isCompleted ()) {
1029
- auto &AttachedEventsList = Event->getPostCompleteEvents ();
1029
+ const std::vector<EventImplPtr> &AttachedEventsList =
1030
+ Event->getPostCompleteEvents ();
1030
1031
CGData.MEvents .reserve (CGData.MEvents .size () +
1031
1032
AttachedEventsList.size () + 1 );
1032
1033
CGData.MEvents .push_back (Event);
0 commit comments