Details
- Reviewers
arsenm aeubanks - Commits
- rGa22ef958cb7e: [AMDGPUCodegenPrepare] Add NewPM Support
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp | ||
---|---|---|
1884 | I'd assume we could preserve some of these |
definitely doesn't look like all analyses are preserved, the pass adds instructions
if the pass doesn't modify the control flow graph, then you can preserve CFGAnalyses
- Preserve CFGAnalyses if the function was modified (asserting no structural changes). Preserve all analyses otherwise.
- Suggested edits
All insertions/deletions are of instructions and none of them are related to branch instructions. Hence, CFGAnalyses are preserved.
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp | ||
---|---|---|
1868 | The CFG does change if the div expansion happens |
Preserve TargetLibraryAnalysis and AssumptionAnalysis in all cases. If no changes are made by the pass, preserve all analyses. Otherwise preserve the two only.
there is no need to preserve those two, they are always preserved (see the invalidate method) even if you don't preserve all analyses
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp | ||
---|---|---|
1885 | !FlowChanged? |
put this in the if block