aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-12-09 20:23:24 -0800
committerGitHub <noreply@github.com>2024-12-09 20:23:24 -0800
commit7c12418021a97545d7e76c876464291932f151e6 (patch)
tree4ec6eb900a96eea07aa3d99c611de2833e510c64 /clang/lib/CodeGen/CodeGenModule.cpp
parent7bcd459dce7b52f2940fde120eb55c9f6273d7b8 (diff)
downloadllvm-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