diff options
author | Vijay Kandiah <vkandiah@nvidia.com> | 2024-06-19 18:45:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 18:45:23 -0500 |
commit | 6d340e4c448c14b7103fddfec7d429b9d535611d (patch) | |
tree | d9a63110aea0f0c024259c1f5b19f040de28d889 /llvm/lib/IR/Module.cpp | |
parent | 89e8e63f47ffc355bf5c55cea8f43a806174cce8 (diff) | |
download | llvm-6d340e4c448c14b7103fddfec7d429b9d535611d.zip llvm-6d340e4c448c14b7103fddfec7d429b9d535611d.tar.gz llvm-6d340e4c448c14b7103fddfec7d429b9d535611d.tar.bz2 |
[flang] fixing alloca hoisting for blocks having single op. (#96009)
This change fixes the issue
https://github.com/llvm/llvm-project/issues/95977 due to commit
c0cba5198155dba246ddd5764f57595d9bbbddef inserting allocas after the
terminator op in the insertion block in the case where the block had
only a single operation, its terminator, in it. With this change, the
hoisted constant-sized allocas are placed at the front of the insertion
block, rather than right after the first operation in it.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions