[PATCH] D76674: [Attributor] Derive better alignment for accessed pointers

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 24 01:35:43 PDT 2020


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

This looks good to me, thanks for relieving me from having to upstream this myself :)



================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:3867
 
-static unsigned int getKnownAlignForUse(Attributor &A,
-                                        AbstractAttribute &QueryingAA,
-                                        Value &AssociatedValue, const Use *U,
-                                        const Instruction *I, bool &TrackUse) {
+/// \p Ptr is accessed so we can get alignment informatio if the ABI requires
+/// the element type to be aligned.
----------------
information


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76674/new/

https://reviews.llvm.org/D76674





More information about the llvm-commits mailing list