aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorOlle Fredriksson <fredriksson.olle@gmail.com>2021-04-21 22:48:28 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-04-21 23:23:38 +0200
commitf5446b769a7929806f72256fccd4826d66502e59 (patch)
treeb76667497d9a1107418bcb3dd07e046f97e63c70 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent6331680ad2ad000fdaf7e72f3c1880c7908ffa25 (diff)
downloadllvm-f5446b769a7929806f72256fccd4826d66502e59.zip
llvm-f5446b769a7929806f72256fccd4826d66502e59.tar.gz
llvm-f5446b769a7929806f72256fccd4826d66502e59.tar.bz2
[MemCpyOpt] Allow variable lengths in memcpy optimizer
This makes the memcpy-memcpy and memcpy-memset optimizations work for variable sizes as long as they are equal, relaxing the old restriction that they are constant integers. If they're not equal, the old requirement that they are constant integers with certain size restrictions is used. The implementation works by pushing the length tests further down in the code, which reveals some places where it's enough that the lengths are equal (but not necessarily constant). Differential Revision: https://reviews.llvm.org/D100870
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions