[PATCH] D54740: [NewPM] fixing asserts on deleted loop in -print-after-all

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 19 23:15:28 PST 2018


fedor.sergeev created this revision.
fedor.sergeev added reviewers: chandlerc, philip.pfaffe.
Herald added a subscriber: mehdi_amini.

IR-printing AfterPass instrumentation might be called on a loop
that has just been invalidated. We should skip printing it to
avoid spurious asserts.


Repository:
  rL LLVM

https://reviews.llvm.org/D54740

Files:
  include/llvm/Analysis/CGSCCPassManager.h
  include/llvm/IR/PassInstrumentation.h
  include/llvm/Transforms/Scalar/LoopPassManager.h
  lib/Analysis/CGSCCPassManager.cpp
  lib/Passes/StandardInstrumentations.cpp
  lib/Transforms/Scalar/LoopPassManager.cpp
  test/Other/loop-deletion-printer.ll
  test/Other/scc-deleted-printer.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54740.174725.patch
Type: text/x-patch
Size: 9158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181120/641899c7/attachment.bin>


More information about the llvm-commits mailing list