[PATCH] D18200: Add __atomic_* lowering to AtomicExpandPass.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 18:35:31 PDT 2016


On Wed, Mar 16, 2016 at 07:44:50PM +0000, Philip Reames wrote:
> If I'm reading the documentation correctly, the sized versions are
> purely an optimization over the generic versions correct?  The compiler
> is free to emit a mix of sized and generic calls on the same object?

I would certainly consider it a bug to emit the generic version in many
environments like a kernel, where you normally will *not* find the
generic versions, especially as requires locks.

Joerg


More information about the llvm-commits mailing list