[PATCH] D44845: [PostRAMachineSink] preserve CFG
Jun Bum Lim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 23 13:40:17 PDT 2018
junbuml created this revision.
junbuml added reviewers: sebpop, mzolotukhin, mcrosier.
Mark CFG is preserved since this pass do not make any change in CFG.
https://reviews.llvm.org/D44845
Files:
lib/CodeGen/MachineSink.cpp
Index: lib/CodeGen/MachineSink.cpp
===================================================================
--- lib/CodeGen/MachineSink.cpp
+++ 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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44845.139647.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180323/3bda56fc/attachment.bin>
More information about the llvm-commits
mailing list