mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[AMDGPU] Derive GCNSubtarget from MF to get overridden target features
Summary: AMDGPUAsmPrinter has a getSTI function that derives a GCNSubtarget from the TM. However, this means that overridden target features are not detected and can result in incorrect behaviour. Switch to using STM which is a GCNSubtarget derived from the MF (used elsewhere in the same function). Change-Id: Ib6328ad667b7fcdc87e9c06344e59859207db9b0 Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D54301 llvm-svn: 347221
This commit is contained in:
parent
3fea6ce2d6
commit
7e3b714db9
@ -911,9 +911,9 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
|
||||
}
|
||||
|
||||
ProgInfo.SGPRBlocks = IsaInfo::getNumSGPRBlocks(
|
||||
getSTI(), ProgInfo.NumSGPRsForWavesPerEU);
|
||||
&STM, ProgInfo.NumSGPRsForWavesPerEU);
|
||||
ProgInfo.VGPRBlocks = IsaInfo::getNumVGPRBlocks(
|
||||
getSTI(), ProgInfo.NumVGPRsForWavesPerEU);
|
||||
&STM, ProgInfo.NumVGPRsForWavesPerEU);
|
||||
|
||||
// Update DebuggerWavefrontPrivateSegmentOffsetSGPR and
|
||||
// DebuggerPrivateSegmentBufferSGPR fields if "amdgpu-debugger-emit-prologue"
|
||||
|
Loading…
Reference in New Issue
Block a user