[PATCH] D40042: [InstCombine] Replace metadata alloca uses without a cast
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 11:21:59 PST 2017
aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.
Nice!
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp:150
+ // soon.
+ if (ValueAsMetadata *MDUse = ValueAsMetadata::getIfExists(&AI)) {
+ LLVMContext &Ctx = New->getContext();
----------------
are there metadata users besides debug info? Would findDbgValues() be more readable?
https://reviews.llvm.org/D40042
More information about the llvm-commits
mailing list