diff options
| author | Nikita Popov <npopov@redhat.com> | 2022-02-10 12:45:32 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2022-02-14 09:13:17 +0100 |
| commit | ff040eca93fb5700b30fc81cde9b8f9401c8da67 (patch) | |
| tree | f6912e724b9b86af6eff3272486792b15594e3dc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | d593cf79458a59d37e75c886a4fc3ac6a02b484d (diff) | |
[FastISel] Reuse register for bitcast that does not change MVT
The current FastISel code reuses the register for a bitcast that
doesn't change the IR type, but uses a reg-to-reg copy if it
changes the IR type without changing the MVT. However, we can
simply reuse the register in that case as well.
In particular, this avoids unnecessary reg-to-reg copies for pointer
bitcasts. This was found while inspecting O0 codegen differences
between typed and opaque pointers.
Differential Revision: https://reviews.llvm.org/D119432
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
