aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2022-03-28 20:06:22 -0700
committerPhilip Reames <listmail@philipreames.com>2022-03-28 20:10:13 -0700
commit33deaa13b854f6269a56b9f160c3bc3ac5f9f773 (patch)
tree30ab30d5234b7be9bea5bd97300fd41a57a3267e /clang/lib/CodeGen/CodeGenFunction.cpp
parent7d6e8f2a96a228b8f30ee7fe472157c00d3a57af (diff)
downloadllvm-33deaa13b854f6269a56b9f160c3bc3ac5f9f773.zip
llvm-33deaa13b854f6269a56b9f160c3bc3ac5f9f773.tar.gz
llvm-33deaa13b854f6269a56b9f160c3bc3ac5f9f773.tar.bz2
[memcpyopt] Common code into performCallSlotOptzn [NFC]
We have the same code repeated in both callers, sink it into callee. The motivation here isn't just code style, we can also defer the relatively expensive aliasing checks until the cheap structural preconditions have been validated. (e.g. Don't bother aliasing if src is not an alloca.) This helps compile time significantly.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions