aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2021-05-06 09:26:57 +0000
committerDiana Picus <diana.picus@linaro.org>2021-05-07 08:54:09 +0000
commit2ea36e94927ccbc1f8e915a4e5c932531e69f02d (patch)
treea3ee2f983a73dbadcd7853c89575b4881a59752d /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent778487a221496e92795afab147c3a030c74ad356 (diff)
downloadllvm-2ea36e94927ccbc1f8e915a4e5c932531e69f02d.zip
llvm-2ea36e94927ccbc1f8e915a4e5c932531e69f02d.tar.gz
llvm-2ea36e94927ccbc1f8e915a4e5c932531e69f02d.tar.bz2
[flang] Remove redundant reallocation
The MaxMinHelper used to implement MIN and MAX for character types would reallocate the accumulator whenever the number of characters in it was different from that in the other input. This is unnecessary if the accumulator is already larger than the other input. This patch fixes the issue and adds a unit test to make sure we don't reallocate if we don't need to. Differential Revision: https://reviews.llvm.org/D101984
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions