Nevermind, I think this is exactly why passes may require passes. A modification
pass would invalidate the program and must therefore not be placed between a
required pass and the pass that requires it.
Regards,
Christoph
Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im
Auftrag von Czurda Christoph
Gesendet: Dienstag, 16. Juni 2015 15:28
An: llvmdev at cs.uiuc.edu
Betreff: [LLVMdev] Scheduling of machine passes
Hello,
I have a question about the execution order of machine passes:
I have written 2 machine function passes. The first is read-only (
analysisUsage.setPreservesAll() ). The second depends on the first and modifies
the program based on the results of the first one (
analysisUsage.setPreservesCFG() ). I would appreciate it if the program did not
change between those 2.
Can I assume that the pass manager does not insert any other modification passes
in front of my modification pass?
Best regards,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150616/9d45c735/attachment.html>