Skip to content
  • Chris Lattner's avatar
    Two Cleanups to generated C code: · d4c569c9
    Chris Lattner authored
    1. Avoid printing *(&globalvariable), instead print globalvariable alone
       as a special case.
    2. Inline subexpressions into expressions as much as legal that preserves
       execution characteristics of expressions.  Now we get nice (but
       over-parenthesized, oh well) things like:
    
         ltmp_428_7 = spec__putc(((unsigned char )((bsBuff) >> 24)), (bsStream));
    
       instead of five seperate instructions (bsBuff & bsStream are globals).
    
    llvm-svn: 2587
    d4c569c9
Loading