This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32309] Unnecessary conversion from short to unsigend short breaks vectorization
- From: "gangren at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2007 18:58:12 -0000
- Subject: [Bug tree-optimization/32309] Unnecessary conversion from short to unsigend short breaks vectorization
- References: <bug-32309-14687@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from gangren at google dot com 2007-06-12 18:58 -------
(In reply to comment #8)
> if later compilation passes could prove that the computation
> overflowed in short, then the result would be different than if the computation
> were done in int.
The result could be different. But in some cases, such as this example, the
result (variable) would be the same. In general, integral promotion might not
be necessary when both destination and sources are short integers?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32309