Skip to content
Unverified Commit 25d0f9fc authored by Kiran Chandramohan's avatar Kiran Chandramohan Committed by GitHub
Browse files

[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.
parent d04c019d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment