[PATCH] [LoopVectorizer] if unsafe-fp-math FN attribute is set, enable reduction detection with float operations

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Fri Nov 28 15:01:14 PST 2014


On 11/28/2014 08:10 PM, Hal Finkel wrote:
> Ah, interesting. That does not seem right. It still need to set the
> function attribute for now (as noted, the transition is not yet
> complete), but it should also trigger the instruction flags.

OK.

> I'll add, however, that I'm not an OpenCL expert, and I don't know
> how this interacts with SPIR, etc.

SPIR 2.0 seems to allow the flags while 1.2 doesn't mention them.
Both SPIR 1.2 and 2.0 have a specified metadata node for storing
compiler flags such as as -cl-fast-relaxed-math.

-- 
--Pekka



More information about the llvm-commits mailing list