Drop attributes or metadata that can cause immediate undefined behavior.
Declared in <llvm/IR/Instruction.h>
void
dropUBImplyingAttrsAndMetadata(ArrayRef<unsigned int> Keep = {});
Retain other attributes/metadata on a best-effort basis, as well as those passed in Keep. This should be used when speculating instructions.
| Name | Description |
|---|---|
| Keep | Metadata kind IDs that should be retained. |