[PATCH] D11707: [GMR] Teach the conservative path of GMR to catch even more easy cases.

David Majnemer david.majnemer at gmail.com
Sun Aug 2 01:28:11 PDT 2015


majnemer added a subscriber: majnemer.

================
Comment at: lib/Analysis/IPA/GlobalsModRef.cpp:698
@@ +697,3 @@
+// with an alias analysis such as GMR.
+bool GlobalsModRef::isNonEscapingGlobalNoAlias(const GlobalValue *GV,
+                                               const Value *V) {
----------------
Where is `GV` used?

================
Comment at: lib/Analysis/IPA/GlobalsModRef.cpp:729-730
@@ +728,4 @@
+      // A pointer loaded from a global would have been captured, and we
+      // know
+      // that GV is non-addr-taken, so no alias.
+      if (isa<GlobalValue>(LI->getPointerOperand()))
----------------
This comment could probably go on one line.


http://reviews.llvm.org/D11707







More information about the llvm-commits mailing list