diff options
author | Amara Emerson <amara@apple.com> | 2021-07-28 17:30:06 -0700 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2021-08-05 17:37:30 -0700 |
commit | 1577c41090a0606432688a9a9cd1744cddcccbda (patch) | |
tree | a659cd5475a4d29558123a78e8379d39667d25de /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | ce6eb4f15a159e652bdccf92a9d3da8a972d1596 (diff) | |
download | llvm-1577c41090a0606432688a9a9cd1744cddcccbda.zip llvm-1577c41090a0606432688a9a9cd1744cddcccbda.tar.gz llvm-1577c41090a0606432688a9a9cd1744cddcccbda.tar.bz2 |
[GlobalISel] Allow the ArtifactValueFinder to return the best available register on failure.
In some cases, like with inserts, we may have a matching size register already,
but still decide to try to look further. This change adds a CurrentBest
register to the value finder state, and any time a method fails to make progress,
returns that register (which may just be an empty Register).
To facilitate this, add a new entry point to the findValueFromDef() function
which initializes this state.
Also fix the build vector finder to return the current build_vector if all
sources are being requested.
Differential Revision: https://reviews.llvm.org/D107017
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions