[PATCH] D34862: [CGP] Relax a bit restriction for optimizeMemoryInst to extend scope

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 15:23:04 PDT 2017


efriedma added inline comments.


================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:4361
+    }
+    if (!Count) {
+      DEBUG(dbgs() << "CGP: Found      local addrmode: " << AddrMode << "\n");
----------------
This is still essentially quadratic: optimizeMemoryInst itself is called in a loop which iterates over the basic block.


https://reviews.llvm.org/D34862





More information about the llvm-commits mailing list