This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32309] Unnecessary conversion from short to unsigend short breaks vectorization



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]