[all-commits] [llvm/llvm-project] 51a346: [flang] Support CHARACTER(4) pointer targets
jeanPerier via All-commits
all-commits at lists.llvm.org
Thu Jun 29 09:37:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51a346815027df5d03f64c3554a11f633c0720e0
https://github.com/llvm/llvm-project/commit/51a346815027df5d03f64c3554a11f633c0720e0
Author: Jean Perier <jperier at nvidia.com>
Date: 2023-06-29 (Thu, 29 Jun 2023)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/test/Fir/rebox-global.fir
Log Message:
-----------
[flang] Support CHARACTER(4) pointer targets
fir.rebox is emitting an llvm.sdiv to compute the character length
given the byte size from the input descriptor.
Inside a fir.global, this is not needed given the target length must
be accessible via the type, and it caused MLIR to fail LLVM IR
code generation (and crash).
Use the input type length when available instead.
Reviewed By: PeteSteinfeld, vzakhari
Differential Revision: https://reviews.llvm.org/D154072
More information about the All-commits
mailing list