[PATCH] D20868: Make DetectDeadLanes preserve CFG

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 08:53:16 PDT 2016


arsenm created this revision.
arsenm added a reviewer: MatzeB.
arsenm added a subscriber: llvm-commits.

http://reviews.llvm.org/D20868

Files:
  lib/CodeGen/DetectDeadLanes.cpp

Index: lib/CodeGen/DetectDeadLanes.cpp
===================================================================
--- lib/CodeGen/DetectDeadLanes.cpp
+++ lib/CodeGen/DetectDeadLanes.cpp
@@ -65,6 +65,11 @@
 
   const char *getPassName() const override { return "Detect Dead Lanes"; }
 
+  void getAnalysisUsage(AnalysisUsage &AU) const override {
+    AU.setPreservesCFG();
+    MachineFunctionPass::getAnalysisUsage(AU);
+  }
+
 private:
   /// Add used lane bits on the register used by operand \p MO. This translates
   /// the bitmask based on the operands subregister, and puts the register into


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20868.59228.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160601/20cc3635/attachment.bin>


More information about the llvm-commits mailing list