[PATCH] D21460: [JumpThreading] Fix handling of aliasing metadata.
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 24 15:22:48 PDT 2016
eli.friedman added inline comments.
================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:965
@@ +964,3 @@
+ LLVMContext::MD_dereferenceable_or_null};
+ combineMetadata(NLI, LI, KnownIDs);
+ };
----------------
hfinkel wrote:
> hiraditya wrote:
> > The declaration of KnownIDs seem to be repeated at other places e.g., line 827. Is there a way to merge them, possibly put them all in a separate function.
> I agree; we'll now have this list of 'metadata which is safe to merge on memory-access CSE'. Let's put this list somewhere common.
Okay; should I add a new utility method called "combineMetadataForMemoryCSE", or do you have some other suggestion?
================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:975
@@ -974,3 +986,3 @@
// then we can propagate them onto any newly inserted loads.
AAMDNodes AATags;
LI->getAAMetadata(AATags);
----------------
hfinkel wrote:
> Is AATags now dead?
Not quite; it's used for inserting a new load instruction. See "if (UnavailablePred)..." around line 1073.
https://reviews.llvm.org/D21460
More information about the llvm-commits
mailing list