Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-8998

Optimize IF(x, 'aa', 'ba')[2] = 'b' to false

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Timed Out
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Code Generator
    • Labels:

      Description

      (This is a real world example - see csss20090702.eclxml)

      One example of a whole set of optimizations moving operators into IFs that could be done if the constant folder had an option to count the number of uses before transforming (and only migrate in if the IF isn't shared).

      This would be worth migrating in even if it was shared (as it probably is in this case) since it would always evaluate to false.

        Attachments

          Activity

            People

            • Assignee:
              anybody Available for anyone
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: