[llvm] r293308 - NVPTX: Make NVPTXInferAddressSpaces preserve CFG

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 09:30:40 PST 2017


Author: arsenm
Date: Fri Jan 27 11:30:39 2017
New Revision: 293308

URL: http://llvm.org/viewvc/llvm-project?rev=293308&view=rev
Log:
NVPTX: Make NVPTXInferAddressSpaces preserve CFG

Modified:
    llvm/trunk/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp

Modified: llvm/trunk/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp?rev=293308&r1=293307&r2=293308&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp Fri Jan 27 11:30:39 2017
@@ -119,6 +119,10 @@ public:
 
   NVPTXInferAddressSpaces() : FunctionPass(ID) {}
 
+  void getAnalysisUsage(AnalysisUsage &AU) const override {
+    AU.setPreservesCFG();
+  }
+
   bool runOnFunction(Function &F) override;
 
 private:




More information about the llvm-commits mailing list