Details
Details
- Reviewers
tblah jeanPerier - Commits
- rG4642198b6540: [flang][hlfir] Codegen for hlfir.get_length.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks
flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp | ||
---|---|---|
336–337 | I think using hlfir::genCharLength(loc, builder, base) may give "better" results in the sense that it will not look inside the fir.boxchar/fir.box to get the length if it can find it on the bufferized base hlfir.declare. Given base was placed in a buffer and is not an hlfir.expr, this helper cannot generate an hlfir.get_length again. |
flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp | ||
---|---|---|
336–337 | Thanks! I will change it. |
I think using hlfir::genCharLength(loc, builder, base) may give "better" results in the sense that it will not look inside the fir.boxchar/fir.box to get the length if it can find it on the bufferized base hlfir.declare.
Given base was placed in a buffer and is not an hlfir.expr, this helper cannot generate an hlfir.get_length again.