aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2022-01-05 09:22:02 -0800
committerMircea Trofin <mtrofin@google.com>2022-01-10 11:55:16 -0800
commite12126913139bb42be1faaefea62eaaa80509626 (patch)
tree4b92738d22f5fcd107f69195ce34bdf31c4b5e6d /llvm/lib/Transforms/Utils/Local.cpp
parentc0add1636d3a8ddb35b223b9684ec35ae34bf867 (diff)
downloadllvm-e12126913139bb42be1faaefea62eaaa80509626.zip
llvm-e12126913139bb42be1faaefea62eaaa80509626.tar.gz
llvm-e12126913139bb42be1faaefea62eaaa80509626.tar.bz2
[NFC][regalloc] Pass RAGreedy to eviction adviser
This patch simplifies the interface between RAGreedy and the eviction adviser by passing the allocator to the adviser, which allows the latter to extract needed information as needed, rather than requiring it be passed piecemeal at construction time (which would also complicate later evolution). Part of this, the patch also moves ExtraRegInfo back to RAGreedy. We keep the encapsulation of ExtraRegInfo because it has benefits (e.g. improved readability by abstracting access to the cascade info) and also simpler re-initialization at regalloc pass re-entry time (we just flush the Optional). Differential Revision: https://reviews.llvm.org/D116669
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions