Fix pass return status for loop extractor
authorserge-sans-paille <sguelton@redhat.com>
Fri, 26 Jun 2020 13:23:05 +0000 (15:23 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Fri, 26 Jun 2020 13:49:27 +0000 (15:49 +0200)
commit44f06db43941749b631756ff13cf7e8f7b2903fe
tree7e7f18785a9d079a720c385b7e38a675f0debe46
parent0069824feab0af5ade571d975deb1efd893c2466
Fix pass return status for loop extractor

As loop extractor has a dependency on another pass (namely BreakCriticalEdges)
that may update the IR, use the getAnalysis version introduced in
55fe7b79bb7fab49af3720840224c0720bdb03c6 to carry that change.

Add an assert in getAnalysisID to make sure no other changed status is missed -
according to validation this was the only one.

Related to https://reviews.llvm.org/D80916

Differential Revision: https://reviews.llvm.org/D81236
llvm/include/llvm/PassAnalysisSupport.h
llvm/lib/Transforms/IPO/LoopExtractor.cpp