[PATCH] D23694: [NVPTX] Switch nvptx-use-infer-addrspace to true.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 14:27:35 PDT 2016


jlebar created this revision.
jlebar added a reviewer: jingyue.
jlebar added subscribers: tra, llvm-commits.
Herald added a subscriber: jholewinski.

This switches us to use a different, more powerful algorithm for address
space inference.  I've tested this locally and it seems to work great.
Once we're more confident in it, we can remove the old pass altogether.

https://reviews.llvm.org/D23694

Files:
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp

Index: llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
===================================================================
--- llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
+++ llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
@@ -51,7 +51,7 @@
 using namespace llvm;
 
 static cl::opt<bool> UseInferAddressSpaces(
-    "nvptx-use-infer-addrspace", cl::init(false), cl::Hidden,
+    "nvptx-use-infer-addrspace", cl::init(true), cl::Hidden,
     cl::desc("Optimize address spaces using NVPTXInferAddressSpaces instead of "
              "NVPTXFavorNonGenericAddrSpaces"));
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23694.68605.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160818/74b0619f/attachment.bin>


More information about the llvm-commits mailing list