#296 Remove silly optimizations

open
1
2006-07-23
2006-07-23
No

For some reason, BindFramesVisitor also optimizes

if (true) {x} else {y}
to
x
and likewise for
if (false) {x} else {y}

These seem like silly optimizations, and should
probably be removed.

Discussion

  • Mark Samuel Miller

    • summary: Remove silly optimization --> Remove silly optimizations
     
  • David Hopwood

    David Hopwood - 2006-07-23

    Logged In: YES
    user_id=634468

    Isn't the point of such optimizations that the 'true' or
    'false' might have been constant-folded from some
    complicated expression, and so this is a way to express a
    limited form of conditional compilation?

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks