diff options
author | Pavel Samolysov <samolisov@gmail.com> | 2022-04-28 09:37:35 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2022-04-28 09:42:58 -0700 |
commit | 6b825e50f7f41f40cb473587bfe65bcb0069da47 (patch) | |
tree | e25fbad6fdd9e136ed22998fe6f18822501433c8 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 3a39bb96ca812d1cbd027803112e94f701ad8687 (diff) | |
download | llvm-6b825e50f7f41f40cb473587bfe65bcb0069da47.zip llvm-6b825e50f7f41f40cb473587bfe65bcb0069da47.tar.gz llvm-6b825e50f7f41f40cb473587bfe65bcb0069da47.tar.bz2 |
[ArgPromotion] Change the condition to check the promotion limit
The condition should be 'ArgParts.size() > MaxElements', so that if we
have exactly 3 elements in the 'ArgParts' vector, the promotion should
be allowed because the 'MaxElement' threshold is not exceeded yet.
The default value for 'MaxElement' has been decreased to 2 in order
to avoid an actual change in argument promoting behavior. However,
this changes byval argument transformation behavior by allowing
adding not more than 2 arguments to the function instead of 3 allowed
before.
Reviewed By: aeubanks
Differential Revision: https://reviews.llvm.org/D124178
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions