1# -*- coding: utf-8 -*-
2# Copyright 2020 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""Config file for pass level bisection
7
8Provides a mapping from pass info from -opt-bisect result to DebugCounter name.
9"""
10pass_name = {
11    # The list now contains all the passes in LLVM that support DebugCounter at
12    # transformation level.
13    # We will need to keep updating this map after more DebugCounter added to
14    # each pass in LLVM.
15    # For users who make local changes to passes, please add a map from pass
16    # description to newly introduced DebugCounter name for transformation
17    # level bisection purpose.
18    'Hoist/decompose integer division and remainder':
19        'div-rem-pairs-transform',
20    'Early CSE':
21        'early-cse',
22    'Falkor HW Prefetch Fix Late Phase':
23        'falkor-hwpf',
24    'Combine redundant instructions':
25        'instcombine-visit',
26    'Machine Copy Propagation Pass':
27        'machine-cp-fwd',
28    'Global Value Numbering':
29        'newgvn-phi',
30    'PredicateInfo Printer':
31        'predicateinfo-rename',
32    'SI Insert Waitcnts':
33        'si-insert-waitcnts-forceexp',
34}
35