[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.
Loading
Please sign in to comment