[PATCH] D76759: [AssumeBundles] Preserve Information from Load/Store
Tyker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 14:06:05 PDT 2020
Tyker added inline comments.
================
Comment at: llvm/lib/IR/KnowledgeRetention.cpp:210
+ MA.valueOrOne().value());
+ };
+ if (auto *Load = dyn_cast<LoadInst>(I))
----------------
jdoerfert wrote:
> Let's make this a member function like `addCall`. We should also merge this with existing logic and put it as a helper somewhere. Given an instruction, and potentially a set of attributes as filter, determine all attributes we can derive from the instruction. I might look into this as the attributor should use that as well to cut down on duplication.
I agree we should try to prevent duplication but we will need to be careful not to be too restrictive about the representation the caller can use such that it can be used widely.
an issue which is hopefully going to get resolved soon. i think this API should reside in Analysis and there are some issues with dependencies for KnowledgeRetention see D76149#inline-701084 for details.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76759/new/
https://reviews.llvm.org/D76759
More information about the llvm-commits
mailing list