diff options
author | Gabriel Hjort Ã…kerlund <gabriel.hjort.akerlund@ericsson.com> | 2021-01-20 10:06:42 +0100 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2021-01-20 10:32:52 +0100 |
commit | 2aeaaf841b58b2a6721f9271ae897e392fd0b357 (patch) | |
tree | 269a255f62c0e890d0c136d4be806f4ae0fa3c49 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b3c260d8fa07ed1202afdda9ca4c437a2a847080 (diff) | |
download | llvm-2aeaaf841b58b2a6721f9271ae897e392fd0b357.zip llvm-2aeaaf841b58b2a6721f9271ae897e392fd0b357.tar.gz llvm-2aeaaf841b58b2a6721f9271ae897e392fd0b357.tar.bz2 |
[GlobalISel] Add missing operand update when copy is required
When constraining an operand register using constrainOperandRegClass(),
the function may emit a COPY in case the provided register class does
not match the current operand register class. However, the operand
itself is not updated to make use of the COPY, thereby resulting in
incorrect code. This patch fixes that bug by updating the machine
operand accordingly.
Reviewed By: dsanders
Differential Revision: https://reviews.llvm.org/D91244
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions