[PATCH] D27190: Do not verify skipped pass

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 21:50:56 PST 2016


sepavloff created this revision.
sepavloff added a reviewer: davide.
sepavloff added a subscriber: llvm-commits.

Sometimes pass is not run at all, it occurs for machine function passes
for functions with attribute available_externally. In this case the pass
verification does not make sense and follows to abnormal termination.

To cope with this and similar problems the change introduces a flag in
the Pass class to mark passes that do not have their results. Verification
for such passes can be skipped.


https://reviews.llvm.org/D27190

Files:
  include/llvm/Pass.h
  lib/CodeGen/MachineDominators.cpp
  lib/CodeGen/MachineFunctionPass.cpp
  lib/IR/Pass.cpp
  test/CodeGen/Generic/externally_available.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27190.79509.patch
Type: text/x-patch
Size: 3576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161129/745d9a34/attachment.bin>


More information about the llvm-commits mailing list