JIT: add ability to order blocks in dump by bbNum or bbID (#70399)
authorAndy Ayers <andya@microsoft.com>
Wed, 8 Jun 2022 01:59:23 +0000 (18:59 -0700)
committerGitHub <noreply@github.com>
Wed, 8 Jun 2022 01:59:23 +0000 (18:59 -0700)
commit655f414c14b96a6293d51dbff69de90507b9e4bc
treee19eac1207c3c05d551eee9078cff08ca09fb3b8
parent77a8d88cbb9a8c58b79bb6253315fec6117da4f8
JIT: add ability to order blocks in dump by bbNum or bbID (#70399)

By default the JIT will dump blocks in bbNext order. This adds
other ordering options, specified by `JitDumpFgBlockOrder`:
* `0 (default) bbNext`
* `1 bbNum`
* `2 bbID`

`bbID` in particular is useful when comparing JIT dumps where blocks
have been reordered but the blocks themselves have similar content.
src/coreclr/jit/compiler.h
src/coreclr/jit/fgbasic.cpp
src/coreclr/jit/fgdiagnostic.cpp
src/coreclr/jit/jitconfigvalues.h