Two Cleanups to generated C code:
authorChris Lattner <sabre@nondot.org>
Thu, 9 May 2002 21:18:38 +0000 (21:18 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 9 May 2002 21:18:38 +0000 (21:18 +0000)
commitd0c668c380d4bc9654e49b663e77d00fb80dbb9f
treea6eb7607f06f2156ea8a5086a61bc22bd505ebf0
parent4fbf26d2fc9dda6fe03dcd6288ef8efb5f89988b
Two Cleanups to generated C code:
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2587 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp