Skip to content

Commit

Permalink
[Statepoint] Mark FixupStatepointCallerSaved as preserving the CFG
Browse files Browse the repository at this point in the history
I'm hoping this will restore some compile time lost by D75936 and D75937.

Differential Revision: https://reviews.llvm.org/D79813
  • Loading branch information
topperc committed May 13, 2020
1 parent 7a8edcb commit de92dc2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
Expand Up @@ -57,6 +57,7 @@ class FixupStatepointCallerSaved : public MachineFunctionPass {
}

void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.setPreservesCFG();
MachineFunctionPass::getAnalysisUsage(AU);
}

Expand Down
3 changes: 1 addition & 2 deletions llvm/test/CodeGen/ARM/O3-pipeline.ll
Expand Up @@ -128,9 +128,8 @@
; CHECK-NEXT: Machine Loop Invariant Code Motion
; CHECK-NEXT: Fixup Statepoint Caller Saved
; CHECK-NEXT: PostRA Machine Sink
; CHECK-NEXT: MachineDominator Tree Construction
; CHECK-NEXT: Machine Natural Loop Construction
; CHECK-NEXT: Machine Block Frequency Analysis
; CHECK-NEXT: MachineDominator Tree Construction
; CHECK-NEXT: MachinePostDominator Tree Construction
; CHECK-NEXT: Lazy Machine Block Frequency Analysis
; CHECK-NEXT: Machine Optimization Remark Emitter
Expand Down
2 changes: 0 additions & 2 deletions llvm/test/CodeGen/X86/O3-pipeline.ll
Expand Up @@ -146,8 +146,6 @@
; CHECK-NEXT: X86 Load Value Injection (LVI) Load Hardening
; CHECK-NEXT: Fixup Statepoint Caller Saved
; CHECK-NEXT: PostRA Machine Sink
; CHECK-NEXT: MachineDominator Tree Construction
; CHECK-NEXT: Machine Natural Loop Construction
; CHECK-NEXT: Machine Block Frequency Analysis
; CHECK-NEXT: MachinePostDominator Tree Construction
; CHECK-NEXT: Lazy Machine Block Frequency Analysis
Expand Down

0 comments on commit de92dc2

Please sign in to comment.