]> granicus.if.org Git - llvm/commit
[CodeExtractor] Add a few debug lines to understand why a region is not extracted
authorQuentin Colombet <quentin.colombet@gmail.com>
Tue, 16 Apr 2019 02:12:05 +0000 (02:12 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Tue, 16 Apr 2019 02:12:05 +0000 (02:12 +0000)
commit574261500506685861a26f5b9e4520ea1149a6ec
tree0d0b1922e4e7a986ccb257232db7e664fc645e1f
parent5a75931d50af7501d5bdaee4fcfe8a1d0010b94a
[CodeExtractor] Add a few debug lines to understand why a region is not extracted

The CodeExtractor is not smart enough to compute which basic block is
the entry of a region. Instead it relies on the order of the list
of basic blocks that is handed to it and assumes that the entry
is the first block in the list.

Without the additional debug information, it is hard to understand
why a valid region does not get extracted, because we would miss
that the order of in the list just doesn't match what the CodeExtractor
wants.

NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CodeExtractor.cpp