[PATCH] D44497: [EarlyCSE] Reuse invariant scopes for invariant load

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 15 06:18:20 PDT 2018


anna accepted this revision.
anna added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: lib/Transforms/Scalar/EarlyCSE.cpp:927
+        // indefinitely constant from the moment of first dereferenceability.
+        // We conservative treat the invariant_load as that moment.
+        auto MemLoc = MemoryLocation::get(Inst);
----------------
conservatively.


Repository:
  rL LLVM

https://reviews.llvm.org/D44497





More information about the llvm-commits mailing list