[PATCH] D109114: [GlobalDCE] In VFE, replace the whole 'sub' expression of unused relative-pointer-based vtable slots
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 4 11:09:43 PDT 2021
fhahn added inline comments.
================
Comment at: llvm/lib/Analysis/TypeMetadataUtils.cpp:206
+ for (auto *PtrToIntUser : PtrExpr->users()) {
+ if (auto *SubExpr = dyn_cast<ConstantExpr>(PtrExpr->user_back())) {
+ if (SubExpr->getOpcode() == Instruction::Sub) {
----------------
oh and just to double check, the assert was removed intentionally?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109114/new/
https://reviews.llvm.org/D109114
More information about the llvm-commits
mailing list