[PATCH] D109888: Bitcast wrapped in a call obscures function attributes, pessimizing MemorySSA
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 08:16:23 PDT 2021
nikic added inline comments.
================
Comment at: llvm/lib/IR/Instructions.cpp:353
if (const Function *F = getCalledFunction())
return F->getAttributes().hasFnAttr(Kind);
+
----------------
You should be able to drop the getCalledFunction() part, as it is subsumed by the newly added code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109888/new/
https://reviews.llvm.org/D109888
More information about the llvm-commits
mailing list