Hi Everyone,
I am processing instructions in a module and I would like to avoid
“call void @llvm.dbg.declare …” instructions as they just provide debug info
about a given instruction. Is there a way to avoid these instructions without
having to turn off the -g option? Thanks.


Do you mean the metadata or the intrinsics? You can check for the intrinsic
and just skip them. Look at some of the transform passes on how to do that.