[all-commits] [llvm/llvm-project] 6d340e: [flang] fixing alloca hoisting for blocks having s...
Vijay Kandiah via All-commits
all-commits at lists.llvm.org
Wed Jun 19 16:45:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d340e4c448c14b7103fddfec7d429b9d535611d
https://github.com/llvm/llvm-project/commit/6d340e4c448c14b7103fddfec7d429b9d535611d
Author: Vijay Kandiah <vkandiah at nvidia.com>
Date: 2024-06-19 (Wed, 19 Jun 2024)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/test/Fir/convert-to-llvm-openmp-and-fir.fir
M flang/test/Fir/convert-to-llvm.fir
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list