I wrote an IR pass and it adds some instructions that are not used.
%1 = call i64 @foo()
When %1 is not used at all.
I thought that running DCE (-dce) or DIE (-die) after my pass will remove such instructions, but it didn’t.
Why? And is there a way to do that?