diff options
author | Nikita Popov <npopov@redhat.com> | 2022-05-12 12:42:45 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-05-16 10:25:25 +0200 |
commit | 05c3fe075d608a3e14f6ab272a24132912ebc861 (patch) | |
tree | dba00e98048e2b08d20dc022566019daaff9016e /lldb/source/Commands/CommandObjectScript.cpp | |
parent | e57f57841fbb0cd1d1dbd3237c2cbe6ce15984dd (diff) | |
download | llvm-05c3fe075d608a3e14f6ab272a24132912ebc861.zip llvm-05c3fe075d608a3e14f6ab272a24132912ebc861.tar.gz llvm-05c3fe075d608a3e14f6ab272a24132912ebc861.tar.bz2 |
[FastISel] Fix load folding for registers with fixups
FastISel tries to fold loads into the single using instruction.
However, if the register has fixups, then there may be additional
uses through an alias of the register.
In particular, this fixes the problem reported at
https://reviews.llvm.org/D119432#3507087. The load register is
(at the time of load folding) only used in a single call instruction.
However, selection of the bitcast has added a fixup between the
load register and the cross-BB register of the bitcast result.
After fixups are applied, there would now be two uses of the load
register, so load folding is not legal.
Differential Revision: https://reviews.llvm.org/D125459
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions