[LLVMdev] Promotion of integral values

Robert L. Bocchino Jr. bocchino at uiuc.edu
Wed Sep 14 19:39:48 PDT 2005


There's some optimization that turns expressions like this:

   short a = ...
   short b =
   int a' = cast short a to int
   int b' = cast short b to int
   int c = a' + b'

into this:

   short a = ...
   short b = ...
   uint a' = cast short a to uint
   uint b' = cast short b to uint
   uint c = a' + b'
   int c = cast uint c to int

Does anyone know which optimization is doing this?  I'd like to be able 
to turn it off.

Rob

Robert L. Bocchino Jr.
Ph.D. Student, Computer Science
University of Illinois, Urbana-Champaign
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050914/86646ccb/attachment.bin>


More information about the llvm-dev mailing list