[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
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev