diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-12-09 20:23:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-09 20:23:24 -0800 |
commit | 7c12418021a97545d7e76c876464291932f151e6 (patch) | |
tree | 4ec6eb900a96eea07aa3d99c611de2833e510c64 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7bcd459dce7b52f2940fde120eb55c9f6273d7b8 (diff) | |
download | llvm-7c12418021a97545d7e76c876464291932f151e6.zip llvm-7c12418021a97545d7e76c876464291932f151e6.tar.gz llvm-7c12418021a97545d7e76c876464291932f151e6.tar.bz2 |
[GISel] Avoid creating a virtual register we don't need. (#119305)
narrowScalarAddSub was creating a virtual register and then overwriting
the Register variable without using it. Add an else and only create it
when needed.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions