Index: llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp =================================================================== --- llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp +++ llvm/lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp @@ -87,9 +87,6 @@ // Finally, it fixes the undef in %y' so that // %y' = phi float addrspace(3)* [ %input, %y2' ] // -// TODO: This pass is experimental and not enabled by default. Users can turn it -// on by setting the -nvptx-use-infer-addrspace flag of llc. We plan to replace -// NVPTXNonFavorGenericAddrSpaces with this pass shortly. //===----------------------------------------------------------------------===// #define DEBUG_TYPE "nvptx-infer-addrspace" 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 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"));