[PATCH] D145490: [GlobalOpt] Collect initializer when building GlobalPart.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 06:13:52 PST 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/GlobalOpt.cpp:388-394
+ auto It =
+ Parts
+ .try_emplace(
+ Offset.getZExtValue(),
+ GlobalPart{Ty, ConstantFoldLoadFromConst(GV->getInitializer(),
+ Ty, Offset, DL)})
+ .first;
----------------
or so to only compute this once?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145490/new/
https://reviews.llvm.org/D145490
More information about the llvm-commits
mailing list