[llvm-dev] Running DCE after my pass

Tehila Mayzels via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 29 08:55:52 PST 2015


Hi,

 

I wrote an IR pass and it adds some instructions that are not used.

For example:

 

%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?

 

Thanks,

Tehila.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151229/2f6839ec/attachment.html>


More information about the llvm-dev mailing list