[PATCH] D11774: [NVPTX] Use LDG for pointer induction variables

Bjarke Hammersholt Roune broune at google.com
Wed Aug 5 15:57:17 PDT 2015


broune added inline comments.

================
Comment at: lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp:552
@@ -551,1 +551,3 @@
+  if (!Subtarget.hasLDG() || CodeAddrSpace != NVPTX::PTXLdStInstCode::GLOBAL ||
+      !isKernelFunction(*F->getFunction())) {
     return false;
----------------
I added a more thorough comment explaining the conditions for using cached loads.


http://reviews.llvm.org/D11774





More information about the llvm-commits mailing list