This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51890] vectorizer does not recognize intrinsic functions like sqrt
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jan 2012 10:06:07 +0000
- Subject: [Bug tree-optimization/51890] vectorizer does not recognize intrinsic functions like sqrt
- Auto-submitted: auto-generated
- References: <bug-51890-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51890
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-18 10:06:07 UTC ---
You need to enable -fno-math-errno as sqrt may set errno which we cannot
vectorize. Then the loop is vectorized (-ffast-math conveniently also
enables -fno-math-errno).