[PATCH] D98884: [IR] Add opt-in parameter to hasAddressTaken() to ignore bitcasts callee in callbase instruction
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 18 13:28:01 PDT 2021
arsenm added a comment.
I'm not sure it's worth having this be an option. You can just always do this, or not
================
Comment at: llvm/lib/IR/Function.cpp:1601
+ if (IgnoreBitCastCallees) {
+ if (isa<BitCastOperator>(FU) &&
+ llvm::all_of(FU->users(),
----------------
Also should restrict to constant expression case. Also need to verify it is a call operand
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98884/new/
https://reviews.llvm.org/D98884
More information about the llvm-commits
mailing list