[flang-commits] [flang] [Flang][HLFIR] Lower PACK(array, .TRUE.) to hlfir.reshape (PR #213603)
via flang-commits
flang-commits at lists.llvm.org
Mon Aug 10 02:11:48 PDT 2026
ejose02 wrote:
@vzakhari @tblah , Thanks for the review. I have made a new commit addressing the concerns. I have created the hlfir.pack op in the new commit.
The genHLFIRIntrinsicRefCore doc comment is back, and the extent product stays in index through fir.shape (no default-integer truncation). For the SHAPE temp, I dropped the reshape hop and canonicalize scalar .TRUE. PACK straight to hlfir.elemental with the same copy kernel as reshape inlining. I also expanded simplify-hlfir-intrinsics-pack.fir with few more tests as well.
https://github.com/llvm/llvm-project/pull/213603
More information about the flang-commits
mailing list