[all-commits] [llvm/llvm-project] 44f06d: Fix pass return status for loop extractor

serge-sans-paille via All-commits all-commits at lists.llvm.org
Fri Jun 26 06:50:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 44f06db43941749b631756ff13cf7e8f7b2903fe
      https://github.com/llvm/llvm-project/commit/44f06db43941749b631756ff13cf7e8f7b2903fe
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M llvm/include/llvm/PassAnalysisSupport.h
    M llvm/lib/Transforms/IPO/LoopExtractor.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list