On 05/22/2015 10:36 AM, Jason Merrill wrote: > It also seems unnecessary to load 8 bytes on any target; we could add a > function to optabs.c that returns the smallest mode for which there's atomic > load support?
No, while we do use an atomic_load<mode> pattern if it exists, we assume that all loads no larger than word_mode are atomic. Thus if the atomic_load<mode> doesn't exist, we'll issue a normal move. If we're just trying to load 8 bits, we can do that on *any* target. r~