This patch adds a new way to query operand bundles of an llvm.assume that is much better suited to some users like the Attributor that need to do many queries on the operand bundles of llvm.assume. Some modifications of the IR like replaceAllUsesWith can cause information in the map to be outdated, so this API is more suited to analysis passes and passes that don't make modification that could invalidate the map.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sorry for the delay.
Two nits but otherwise LGTM.
if (Bundles.End - Bundles.Begin <compare> SOMETHIG)
Might deserve a helper function or two.
llvm/lib/Transforms/Utils/KnowledgeRetention.cpp | ||
---|---|---|
180 | static or in the anonymous namespace. |
static or in the anonymous namespace.