diff options
author | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2023-11-16 13:22:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 13:22:26 +0000 |
commit | 25d0f9fc3bddd50a38eeb44877cfa291c380d408 (patch) | |
tree | 12fc64e41926aceb90182f9e24c440c73abd4c30 /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp | |
parent | d04c019d284f7eabc7093ab380c3aa3321c29cf6 (diff) | |
download | llvm-25d0f9fc3bddd50a38eeb44877cfa291c380d408.zip llvm-25d0f9fc3bddd50a38eeb44877cfa291c380d408.tar.gz llvm-25d0f9fc3bddd50a38eeb44877cfa291c380d408.tar.bz2 |
[Flang][OpenMP][OpenACC] Hoist nonAtomic Expr in atomic intrinsics (#72131)
Hoist non-atomic expressions in atomic intrinsics. Use a list to collect
the non-atomic expressions since the max and min intrinsics can have
more than two operands.
Hoisting makes the lowering to LLVMIR of iand,ior,ieor intrinsics
trivial. For max and min this still results in multiple instructions in
the atomic region but the loads are removed, which should help improve
performance.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions