mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-11 15:26:40 +00:00
AMDGPU: SIDebuggerInsertNops preserves CFG
This saves an additional run of the DominatorTree and MachineLoopInfo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271444 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dec5f39566
commit
69971dbc30
@ -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…
x
Reference in New Issue
Block a user