[PATCH] D44845: [PostRAMachineSink] preserve CFG
Jun Bum Lim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 28 12:59:21 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328727: [PostRAMachineSink] preserve CFG (authored by junbuml, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D44845?vs=139647&id=140126#toc
Repository:
rL LLVM
https://reviews.llvm.org/D44845
Files:
llvm/trunk/lib/CodeGen/MachineSink.cpp
llvm/trunk/test/CodeGen/X86/O3-pipeline.ll
Index: llvm/trunk/lib/CodeGen/MachineSink.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineSink.cpp
+++ llvm/trunk/lib/CodeGen/MachineSink.cpp
@@ -948,6 +948,11 @@
PostRAMachineSinking() : MachineFunctionPass(ID) {}
StringRef getPassName() const override { return "PostRA Machine Sink"; }
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
private:
/// Track which registers have been modified and used.
BitVector ModifiedRegs, UsedRegs;
Index: llvm/trunk/test/CodeGen/X86/O3-pipeline.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/O3-pipeline.ll
+++ llvm/trunk/test/CodeGen/X86/O3-pipeline.ll
@@ -120,8 +120,6 @@
; CHECK-NEXT: Bundle Machine CFG Edges
; CHECK-NEXT: X86 FP Stackifier
; 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: Shrink Wrapping analysis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44845.140126.patch
Type: text/x-patch
Size: 1231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180328/62bf9a7a/attachment.bin>
More information about the llvm-commits
mailing list