Remove every uses that can safely be removed.
Synopsis
Declared in <llvm/IR/Value.h>
void
dropDroppableUses(llvm::function_ref<bool(xref:llvm/Use.adoc[Use const*)>] ShouldDrop = [](const Use *) { return true; });
Description
This will remove for example uses in llvm.assume. This should be used when performing want to perform a transformation but some Droppable uses prevent it. This function optionally takes a filter to only remove some droppable uses.
Parameters
Name |
Description |
ShouldDrop |
Predicate selecting which droppable uses to remove. |
Created with MrDocs