[PATCH] D100717: [InstCombine] Transform memcpy to ptr load/stores if TBAA says so
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 18 02:01:46 PDT 2021
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Yep, this looks pretty good!
================
Comment at: llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp:460-462
+ for (auto *Desc : Descs)
+ if (Tag1->getString() == Desc)
+ return true;
----------------
return is_contained(Descs, Tag1->getString());
================
Comment at: llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp:471-473
+ for (auto *Desc : Descs)
+ if (Id->getString() == Desc)
+ return true;
----------------
return is_contained(Descs, Id->getString());
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100717/new/
https://reviews.llvm.org/D100717
More information about the llvm-commits
mailing list