[llvm-dev] Doubt regarding getAnalysisUsage

Dangeti Tharun kumar via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 13 21:32:04 PDT 2019


Hi,

I have a doubt regarding *getAnalysisUsage.* My assumption is that, as
analysis passes will not change the IR, all the passes required by an
analysis pass should be preserved. Say, I have an analysis pass which
requires another analysis pass called *SomeAnalysis* and I have not
added *AU.addPreserved<SomeAnalysis>()
*to my pass.

Would the pass manager still considers the *SomeAnlaysis *as preserved?
-- 
Regards,
DTharun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190814/75f08c92/attachment.html>


More information about the llvm-dev mailing list