forked from OSchip/llvm-project
AMDGPU: SIDebuggerInsertNops preserves CFG
This saves an additional run of the DominatorTree and MachineLoopInfo llvm-svn: 271444
This commit is contained in:
parent
b2a4aa12d2
commit
d3e4c646ea
|
@ -59,6 +59,7 @@ extern "C" void LLVMInitializeAMDGPUTarget() {
|
|||
initializeSIInsertWaitsPass(*PR);
|
||||
initializeSIWholeQuadModePass(*PR);
|
||||
initializeSILowerControlFlowPass(*PR);
|
||||
initializeSIDebuggerInsertNopsPass(*PR);
|
||||
}
|
||||
|
||||
static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
|
||||
|
|
|
@ -39,6 +39,11 @@ public:
|
|||
SIDebuggerInsertNops() : MachineFunctionPass(ID) { }
|
||||
const char *getPassName() const override { return PASS_NAME; }
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue