[PATCH] D29163: NVPTX: Make NVPTXInferAddressSpaces preserve CFG

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 20:29:29 PST 2017


arsenm created this revision.
Herald added subscribers: wdng, jholewinski.

https://reviews.llvm.org/D29163

Files:
  lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp


Index: lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
===================================================================
--- lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
+++ lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
@@ -119,6 +119,10 @@
 
   NVPTXInferAddressSpaces() : FunctionPass(ID) {}
 
+  void getAnalysisUsage(AnalysisUsage &AU) const override {
+    AU.setPreservesCFG();
+  }
+
   bool runOnFunction(Function &F) override;
 
 private:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29163.85854.patch
Type: text/x-patch
Size: 446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170126/d33176ef/attachment.bin>


More information about the llvm-commits mailing list