diff options
author | darkbuck <michael.hliao@gmail.com> | 2024-01-11 22:41:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 10:41:55 +0700 |
commit | 54c19546ba6ffd24a3bcb0c0d145309ed6f8ce46 (patch) | |
tree | 8c4aef54eeecc5908bc9188fce1914d38dee4d68 /llvm/lib/Support/StringRef.cpp | |
parent | a2af3742847899070322f15d6cefb7e9c738f40d (diff) | |
download | llvm-54c19546ba6ffd24a3bcb0c0d145309ed6f8ce46.zip llvm-54c19546ba6ffd24a3bcb0c0d145309ed6f8ce46.tar.gz llvm-54c19546ba6ffd24a3bcb0c0d145309ed6f8ce46.tar.bz2 |
[GlobalISel] Revise 'assignCustomValue' interface (#77824)
- Previously, 'assignCustomValue' requests the number of assigned VAs
minus 1 is returned and treats 0 as the assignment failure. However,
under that arrangment, we cannot tell a successful *single* VA custom
assignment from the failure case.
- This change requests that 'assignCustomValue' just return the number
of all VAs assigned, including the first WA so that it won't be ambigous
to tell the failure case from the single VA custom assignment.
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions