Skip to content

Commit 976d112

Browse files
bmyatesCompute-Runtime-Automation
authored andcommitted
performance: optimize copy in allocateDebugMetadata
Signed-off-by: Brandon Yates <[email protected]>
1 parent 696be48 commit 976d112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/source/os_interface/linux/xe/ioctl_helper_xe_debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void *IoctlHelperXe::allocateDebugMetadata() {
3030
drm_xe_ext_vm_set_debug_metadata *prev = nullptr;
3131
drm_xe_ext_vm_set_debug_metadata *xeMetadataRoot = nullptr;
3232

33-
for (auto metadata : debugMetadata) {
33+
for (auto &metadata : debugMetadata) {
3434
auto *xeMetadata = new drm_xe_ext_vm_set_debug_metadata();
3535
if (!xeMetadataRoot) {
3636
xeMetadataRoot = xeMetadata;

0 commit comments

Comments
 (0)