Changes between Version 2 and Version 3 of Commentary/Compiler/NewCodeGenStupidity


Ignore:
Timestamp:
Mar 23, 2011 12:46:53 PM (4 years ago)
Author:
ezyang
Comment:

Note about -ddump-opt-cmm versus -ddump-cmmz/-ddump-raw-cmm

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/NewCodeGenStupidity

    v2 v3  
    77The new code generator tends to generate C-- in the following style (which should be optimized away by the backends but can increase "line-noise"):
    88
    9 * Lots of temporary variables (these can tickle other issues when the temporaries are long-lived, but otherwise would be optimized away)
     9 - Lots of temporary variables (these can tickle other issues when the temporaries are long-lived, but otherwise would be optimized away). You can at least eliminate some of them by looking at the output of `-ddump-opt-cmm`, which utilizes some basic temporary inlining when used with the native backend `-fasm`, but this doesn't currently apply to the GCC or LLVM backends.
    1010
    1111== Rewriting stacks ==