PTX: Let LLVM use loads/stores for all mem* intrinsics, instead of relying on custom...
authorJustin Holewinski <justin.holewinski@gmail.com>
Mon, 14 Nov 2011 18:58:20 +0000 (18:58 +0000)
committerJustin Holewinski <justin.holewinski@gmail.com>
Mon, 14 Nov 2011 18:58:20 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144551 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PTX/PTXISelLowering.cpp

index 7f55871f63b00ce231f169975544ae81b8963fe5..17191fbc3e0289c4f5a2029693dc0fda7b521eab 100644 (file)
@@ -47,6 +47,11 @@ PTXTargetLowering::PTXTargetLowering(TargetMachine &TM)
   setBooleanVectorContents(ZeroOrOneBooleanContent); // FIXME: Is this correct?
   setMinFunctionAlignment(2);
 
+  // Let LLVM use loads/stores for all mem* operations
+  maxStoresPerMemcpy  = 4096;
+  maxStoresPerMemmove = 4096;
+  maxStoresPerMemset  = 4096;
+
   ////////////////////////////////////
   /////////// Expansion //////////////
   ////////////////////////////////////