forked from OSchip/llvm-project
AMDGPU/SI: Initialize InstrInfo before TargetLoweringInfo in GCNSubtarget
SITargetLowering queries SIInstrInfo in its constructor, so SIInstrInfo must be initialized first. This fixes msan buildbot failures and was introduced by r336851. llvm-svn: 336861
This commit is contained in:
parent
0f53355e83
commit
752ddbd068
|
@ -208,8 +208,8 @@ GCNSubtarget::GCNSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
|
|||
ScalarizeGlobal(false),
|
||||
|
||||
FeatureDisable(false),
|
||||
TLInfo(TM, initializeSubtargetDependencies(TT, GPU, FS)),
|
||||
InstrInfo(*this),
|
||||
InstrInfo(initializeSubtargetDependencies(TT, GPU, FS)),
|
||||
TLInfo(TM, *this),
|
||||
FrameLowering(TargetFrameLowering::StackGrowsUp, getStackAlignment(), 0) {
|
||||
AS = AMDGPU::getAMDGPUAS(TT);
|
||||
CallLoweringInfo.reset(new AMDGPUCallLowering(*getTargetLowering()));
|
||||
|
|
|
@ -362,8 +362,8 @@ protected:
|
|||
SelectionDAGTargetInfo TSInfo;
|
||||
AMDGPUAS AS;
|
||||
private:
|
||||
SITargetLowering TLInfo;
|
||||
SIInstrInfo InstrInfo;
|
||||
SITargetLowering TLInfo;
|
||||
SIFrameLowering FrameLowering;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue