ΒΆbool isSafeToDestroyConstant(
const llvm::Constant* C)
bool isSafeToDestroyConstant(
const llvm::Constant* C)
Description
It is safe to destroy a constant iff it is only used by constants itself. Note that constants cannot be cyclic, so this test is pretty easy to implement recursively.
Declared at: llvm/include/llvm/Transforms/Utils/GlobalStatus.h:24
Parameters
- const llvm::Constant* C