aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorJean Perier <jperier@nvidia.com>2022-12-06 09:33:48 +0100
committerJean Perier <jperier@nvidia.com>2022-12-06 09:34:13 +0100
commit9b9a8475d3ac9efad59554a25c940ef37b2056e3 (patch)
tree94cb352cf11df15c9156a308a0b18cd23f96ac87 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentd09d834bb9807d7d484c499fe5128b43c8e5950d (diff)
downloadllvm-9b9a8475d3ac9efad59554a25c940ef37b2056e3.zip
llvm-9b9a8475d3ac9efad59554a25c940ef37b2056e3.tar.gz
llvm-9b9a8475d3ac9efad59554a25c940ef37b2056e3.tar.bz2
[flang] do not generate padding/truncation code when character length are equals
When generating character assignment operations, the generic code generates some code to handle truncation and padding when the length differ at runtime. A bypass already exists when the length are compile time constant and match, but it was not used for the trivial case where the RHS and LHS length is the same SSA value. In such case, even though, the length is not know at compile time, it is known to be the same. This will simplify the code creating character temporaries from a variable in HLFIR that will use this assignment code. Note that this probably has little impact on performance (llvm may be clever enough to later catch that for us). But it makes the generated IR a lot more readable at little cost. Differential Revision: https://reviews.llvm.org/D139330
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions