llvm-project
25d0f9fc - [Flang][OpenMP][OpenACC] Hoist nonAtomic Expr in atomic intrinsics (#72131)

Commit
2 years ago
[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.
Parents
Loading