[PATCH] D115218: [CodeExtractor] Refactor extractCodeRegion, fix parameter index confusion.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 08:29:06 PDT 2022


Meinersbur added a comment.

ping



================
Comment at: llvm/lib/Transforms/Utils/CodeExtractor.cpp:1173-1176
-      AllocaInst *alloca =
-        new AllocaInst(output->getType(), DL.getAllocaAddrSpace(),
-                       nullptr, output->getName() + ".loc",
-                       &codeReplacer->getParent()->front().front());
----------------
@wsmoses `AllocationBlock` should have been used here as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115218



More information about the llvm-commits mailing list