[PATCH] D134281: [CGP] Update MemIntrinsic alignment if possible

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 17:14:11 PDT 2022


efriedma added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:2257
     // alignment
     if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(CI)) {
       Align DestAlign = getKnownAlignment(MI->getDest(), *DL);
----------------
Is this change putting this code inside the for loop?  We don't need to run this more than once per call.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134281



More information about the llvm-commits mailing list