mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
AMDGPU: SIDebuggerInsertNops preserves CFG
This saves an additional run of the DominatorTree and MachineLoopInfo llvm-svn: 271444
This commit is contained in:
parent
fc9b621e7a
commit
d7671dd7b8
@ -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
Block a user