[PATCH] add a convenience method to copy wrapping, exact, and fast-math flags (NFC)
spatel at rotateright.com
Sun Aug 31 17:14:58 PDT 2014
Hi aschwaighofer, nadav, hfinkel,
The loop vectorizer preserves wrapping, exact, and fast-math properties of scalar instructions. This patch adds a convenience method to make that operation easier because we need to do this in the loop vectorizer, SLP vectorizer, and possibly other places.
Although this is a 'no functional change' patch, I've added a testcase to verify that the exact flag is preserved by the loop vectorizer. The wrapping and fast-math flags are already checked in existing testcases.
This is a preliminary patch to enable a fix for:
[SLP vectorizer] fast-math and wrap/exact flags are not preserved.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3652 bytes
Desc: not available
More information about the llvm-commits