HomePhabricator

Reset PAL metadata when AMDGPU traget stream finishes

Authored by s-perron on Aug 17 2020, 7:56 AM.

Description

Reset PAL metadata when AMDGPU traget stream finishes

If the same stream object is used for multiple compiles, the PAL metadata from eariler compilations will leak into later one. See https://github.com/GPUOpen-Drivers/llpc/issues/882 for how this is happening in LLPC.

No tests were added because multiple compiles will have to happen using the same pass manager, and I do not see a setup for that on the LLVM side. Let me know if there is a good way to test this.

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D85667

Details

Committed
kuharAug 17 2020, 7:56 AM
Reviewer
nhaehnle
Differential Revision
D85667: Reset PAL metadata when AMDGPU traget stream finishes
Parents
rGcddb0dbcefd8: [LLD][PowerPC] Implement GOT to PC-Rel relaxation
Branches
Unknown
Tags
Unknown