summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp b/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp
index b086d2ed665..f6e57a6d5b5 100644
--- a/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp
+++ b/llvm/lib/Target/AMDGPU/SIPrepareScratchRegs.cpp
@@ -47,6 +47,10 @@ public:
return "SI prepare scratch registers";
}
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
};
} // End anonymous namespace
OpenPOWER on IntegriCloud